pr58419.c: Use dummy no-inline function instead of getpid.

2014-04-30  Soundararajan Dhakshinamoorthy  <sounderarajan.d@atmel.com>

	* gcc.c-torture/execute/pr58419.c: Use dummy no-inline function
	instead of getpid.

From-SVN: r209957
This commit is contained in:
Soundararajan Dhakshinamoorthy 2014-04-30 21:09:21 +00:00 committed by Jeff Law
parent 598cc4fada
commit ba49cc990b
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2014-04-30 Soundararajan Dhakshinamoorthy <sounderarajan.d@atmel.com>
* gcc.c-torture/execute/pr58419.c: Use dummy no-inline function
instead of getpid.
2014-04-30 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/coarray_poly_7.f90

View File

@ -1,4 +1,9 @@
int printf(const char *, ...);
__attribute__((__noinline__))
void
dummy ()
{
asm volatile("");
}
int a, g, i, k, *p;
signed char b;
@ -31,6 +36,6 @@ main ()
*l = a;
g = foo (*m = k && *d, 1 > i) || bar ();
}
getpid();
dummy();
return 0;
}