Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / uninit-pred-9_b.c
blob3c83d505ec0f6dd7b5e5b683bd6852de78de5b09
1 /* { dg-do compile } */
2 /* { dg-options "-Wuninitialized -O2" } */
4 int g;
5 void bar();
6 void blah(int);
8 int foo (int n, int l, int m, int r)
10 int v;
12 if ( (n < 10) && (m != 100) && (r < 20) )
13 v = r;
15 if (m) g++;
16 else bar();
18 if (l > 100)
19 if ( (n <= 9) && (m < 100) && (r < 19) )
20 blah(v); /* { dg-bogus "uninitialized" "bogus warning" { xfail *-*-* } } */
22 if ( (n <= 8) && (m < 99) && (r < 19) )
23 blah(v); /* { dg-bogus "uninitialized" "pr101674" { xfail mmix-*-* } } */
25 return 0;
28 int foo_2 (int n, int l, int m, int r)
30 int v;
32 if ( (n < 10) && (m != 100) && (r < 20) )
33 v = r;
35 if (m) g++;
36 else bar();
38 if (l > 100)
39 if ( (n <= 8) && (m < 101) && (r < 19) )
40 blah(v); /* { dg-warning "uninitialized" "real warning" } */
42 return 0;