1 /* Expected uninitialized variable warning. */ 2 3 /* { dg-do compile } */ 4 /* { dg-options "-O -Wuninitialized" } */ 5 6 unsigned bmp_iter_set (); 7 int something (void); 8 9 void bitmap_print_value_set(void)10bitmap_print_value_set (void) 11 { 12 unsigned first; /* { dg-warning "may be used" "conditional in loop" { xfail *-*-* } } */ 13 14 for (; bmp_iter_set (); ) 15 { 16 if (!first) 17 something (); 18 first = 0; 19 } 20 } 21