Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr91195.c
blobea3021d01448ac914f75a7d5def41a09645d7824
1 /* PR middle-end/91195 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wmaybe-uninitialized -O2" } */
5 int bar (char*);
7 void
8 foo (char *x, char *y)
10 char *a[2];
11 int b = 0;
13 if (x)
14 a[b++] = x; /* { dg-bogus "may be used uninitialized in this function" } */
15 if (y)
16 a[b++] = y;
18 for (int j = 0; j < 4; j++)
19 switch (j)
21 case 0:
22 if (b == 0 || bar (a[0]))
23 break;