Fix unused warnings.
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.c-torture / execute / pr24141.c
blob301296206cb5e5b7babb41be75b7684d332e6c03
1 // reduced testcase, compile with -O2. Also, with --disable-checking
2 // gcc produces wrong code.
4 void abort (void);
5 int i;
7 void g (void)
9 i = 1;
12 void f (int a, int b)
14 int c = 0;
15 if (a == 0)
16 c = 1;
17 if (c)
18 return;
19 if (c == 1)
20 c = 0;
21 if (b == 0)
22 c = 1;
23 if (c)
24 g ();
27 int main (void)
29 f (1, 0);
30 if (i != 1)
31 abort ();
32 return 0;