Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / uninit-pred-6_e.c
blob21f429daf4d19d908f2d8b88d7a0faa350be2da4
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 > 10)
14 v = r;
16 if (m) g++;
17 else bar();
19 if ( (n > 10) && (l < 100))
20 blah(v); /* { dg-bogus "uninitialized" "bogus warning" } */
22 if ( n > 100 )
23 blah(v); /* { dg-bogus "uninitialized" "bogus warning" } */
25 return 0;
28 int foo_2 (int n, int l, int m, int r)
30 int v;
32 if (n > 10)
33 v = r;
35 if (m) g++;
36 else bar();
38 if ( n < 10)
39 blah (v); /* { dg-warning "uninitialized" "warning" } */
42 return 0;