libgfortran/ChangeLog:
[official-gcc.git] / gcc / testsuite / gcc.dg / uninit-suppress_2.c
blobe1497347336a74d3bc7e06f44abc351835be2290
1 /* { dg-do compile } */
2 /* { dg-options "-fno-tree-ccp -fno-tree-vrp -O2 -Wuninitialized -Werror=uninitialized -Wno-error=maybe-uninitialized" } */
3 void blah();
4 int gflag;
6 void foo()
8 int v;
9 if (gflag)
10 v = 10;
12 blah(); /* *gflag may be killed, but compiler won't know */
14 if (gflag)
15 bar(v); /* { dg-warning "uninitialized" "should not be promoted to error" } */