Debian Codegraph @

gcc/testsuite/gcc.dg/uninit-pr89296.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wuninitialized" } */
3
4 int get_a_value ();
5 void printk(const char *);
6 void test_func()
7 {
8 int loop;
9 while (!loop) { /* { dg-warning "is used uninitialized" } */
10 loop = get_a_value();
11 printk("...");
12 }
13 }