PR ipa/61602
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr57214.c
blobd51067d95d8fae03a32862c9ca9b2179eda2e283
1 /* { dg-do compile } */
3 extern int baz (void);
4 extern int foo (void) __attribute__ ((returns_twice));
6 void
7 bar (_Bool b)
9 int buf[1];
10 while (1)
12 _Bool x = 1;
13 if (b)
14 baz ();
15 b = 1;
16 baz ();
17 x = 0;
18 int i;
19 while (buf[i] && i)
20 i++;
21 foo ();
22 if (!x)
23 b = 0;