2013-05-29 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / loop-10.c
blob1a6afba6b9592e058fd0b1b4e90bd1cdc1d17b40
1 /* Reduced from PR optimization/5076, PR optimization/2847 */
3 static int count = 0;
5 static void
6 inc (void)
8 count++;
11 int
12 main (void)
14 int iNbr = 1;
15 int test = 0;
16 while (test == 0)
18 inc ();
19 if (iNbr == 0)
20 break;
21 else
23 inc ();
24 iNbr--;
26 test = 1;
28 if (count != 2)
29 abort ();
30 return 0;