]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/pr56023.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr56023.c
CommitLineData
35d59da7
UB
1/* { dg-do compile } */
2/* { dg-options "-O2 -fcompare-debug" } */
3
4void
5foo (char *c)
6{
7 unsigned int x = 0;
8 unsigned int i;
9
10 for (i = 0; c[i]; i++)
11 {
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;
18 }
19}