]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr18501.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr18501.c
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
10 bitmap_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 }