modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/pr49073.c (about) 1 /* PR tree-optimization/49073 */ 2 3 extern void abort (void); 4 int a[] = { 1, 2, 3, 4, 5, 6, 7 }, c; 5 6 int 7 main () 8 { 9 int d = 1, i = 1; 10 _Bool f = 0; 11 do 12 { 13 d = a[i]; 14 if (f && d == 4) 15 { 16 ++c; 17 break; 18 } 19 i++; 20 f = (d == 3); 21 } 22 while (d < 7); 23 if (c != 1) 24 abort (); 25 return 0; 26 }