1 /* PR target/49069 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-Os -fno-tree-forwprop -Wno-div-by-zero" } */ 4 5 int a; 6 const unsigned long long b[1] = { 1ULL }; 7 extern void bar (int); 8 9 void foo(void)10foo (void) 11 { 12 for (a = 0; a == 1; a = 2) 13 ; 14 bar (b[0] == (a == 0 ? a : a / 0)); 15 } 16