Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / uninit-pr81782.c
blob7d1e90203f0019675a45c4b1472a7a105563f9ff
1 /* { dg-do compile } */
2 /* { dg-options "-Wmaybe-uninitialized" } */
4 int
5 foo (void)
7 char empty_array[] = { };
8 int i, ret = 0;
10 for (i = 0; i < (int) (sizeof (empty_array) / sizeof (empty_array[0])); i++)
11 ret = empty_array[i]; /* { dg-bogus "uninitialized" } */
13 return ret;