Fix unused warnings.
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.c-torture / execute / pr34768-2.c
blob917bf9e2b6f99e6f355b038792c6be4ade53c2fa
1 int x;
3 int __attribute__((noinline)) foo (void)
5 x = -x;
6 return 0;
8 int __attribute__((const,noinline)) bar (void)
10 return 0;
13 int __attribute__((noinline))
14 test (int c)
16 int tmp = x;
17 int res = (c ? foo : bar) ();
18 return tmp + x + res;
21 extern void abort (void);
22 int main()
24 x = 1;
25 if (test (1) != 0)
26 abort ();
27 return 0;