Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr34768-1.c
blobeb16adbf1f351153993698a6d41f4061153df7d3
1 int x;
3 void __attribute__((noinline)) foo (void)
5 x = -x;
7 void __attribute__((const,noinline)) bar (void)
11 int __attribute__((noinline))
12 test (int c)
14 int tmp = x;
15 (c ? foo : bar) ();
16 return tmp + x;
19 extern void abort (void);
20 int main()
22 x = 1;
23 if (test (1) != 0)
24 abort ();
25 return 0;