repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr56023.c
blob
f1942ac18c9f865dee268549d66330d4e5bb71c6
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fcompare-debug" } */
3
4
void
5
foo
(
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
}