Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / uninit-pr106866.c
blob530e274118ca7bdda7739187c5cb59426d6a2789
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fno-ipa-pure-const -Wuninitialized" } */
4 int n;
6 void
7 empty (int)
11 int
12 bar (int x)
14 return n + x + 1;
17 __attribute__ ((pure, returns_twice)) int
18 foo (void)
20 int uninitialized;
22 if (n)
24 if (bar (0))
25 return 0;
27 __builtin_unreachable ();
30 while (uninitialized < 1) /* { dg-warning "uninitialized" } */
32 foo ();
33 empty (bar (0) == foo ());
34 ++uninitialized;
37 return 0;