Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / uninit-pred-2_b.c
blobac7697e3c82730ed4d38cf0e9a9b4a0119b14a88
1 /* { dg-do compile } */
2 /* { dg-options "-Wuninitialized -O2" } */
4 int g;
5 void bar (void);
6 void blah (int);
8 int foo (int n, int m, int r)
10 int flag = 0;
11 int v;
13 if (n)
15 v = r;
16 flag = 1;
19 if (m)
20 g++;
21 else
22 bar();
24 /* Wrong guard */
25 if (!flag)
26 blah(v); /* { dg-warning "uninitialized" "real uninitialized var warning" } */
28 return 0;