2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr33434-3.c
blob3e99451fb29c582c04becb57c9090da30cbd1d41
1 /* PR tree-optimization/33434 */
2 /* { dg-do run } */
3 /* { dg-options "-O3" } */
5 int k;
7 void __attribute__((noinline)) f2 (int b)
9 k = b - 1;
12 void f1 (int a, int b)
14 f2 (b);
15 a = 1;
16 b = 1;
17 if (a)
18 while (b --)
19 k = 1;
20 else
21 if (b != 1)
22 __builtin_abort ();
25 int main (void)
27 f1 (1, 1);
28 if (k != 1)
29 __builtin_abort ();
30 return 0;