2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / gcc.dg / uninit-pred-7_c.c
blob1bbe5014dec5c0997ec31ff4dcd7564e91a6970c
2 /* { dg-do compile } */
3 /* { dg-options "-Wuninitialized -O2" } */
5 int g;
6 void bar();
7 void blah(int);
9 int foo (int n, int l, int m, int r)
11 int v;
13 if (n)
14 v = r;
16 if (m) g++;
17 else bar();
19 if (n )
21 if (l)
22 g++;
23 else
24 goto l;
26 else
29 blah (v); /* { dg-warning "uninitialized" "warning" } */
32 return 0;