Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr56023.c
blobf1942ac18c9f865dee268549d66330d4e5bb71c6
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fcompare-debug" } */
4 void
5 foo (char *c)
7 unsigned int x = 0;
8 unsigned int i;
10 for (i = 0; c[i]; i++)
12 if (i >= 5 && x != 1)
13 break;
14 else if (c[i] == ' ')
15 x = i;
16 else if (c[i] == '/' && c[i + 1] != ' ' && i)
17 x = i + 1;