2008-01-25 Douglas Gregor <doug.gregor@gmail.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr18501.c
blob8794486eea8242c3506ebb50e99a7ccd484359ee
1 /* Expected uninitialized variable warning. */
3 /* { dg-do compile } */
4 /* { dg-options "-O -Wuninitialized" } */
6 unsigned bmp_iter_set ();
7 int something (void);
9 void
10 bitmap_print_value_set (void)
12 unsigned first; /* { dg-warning "may be used" "conditional in loop" { xfail *-*-* } } */
14 for (; bmp_iter_set (); )
16 if (!first)
17 something ();
18 first = 0;