1/* Reduced from PR optimization/5076, PR optimization/2847 */ 2 3static int count = 0; 4 5static void 6inc (void) 7{ 8 count++; 9} 10 11int 12main (void) 13{ 14 int iNbr = 1; 15 int test = 0; 16 while (test == 0) 17 { 18 inc (); 19 if (iNbr == 0) 20 break; 21 else 22 { 23 inc (); 24 iNbr--; 25 } 26 test = 1; 27 } 28 if (count != 2) 29 abort (); 30 return 0; 31} 32