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
Corrected date in changelog
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr56023.c
blob
d53a22ce8f788c38b2bd2c29d33f41a5e9d9a956
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fcompare-debug" } */
3
/* { dg-xfail-if "" { powerpc-ibm-aix* } } */
4
5
void
6
foo
(
char
*
c
)
7
{
8
unsigned int
x
=
0
;
9
unsigned int
i
;
10
11
for
(
i
=
0
;
c
[
i
];
i
++)
12
{
13
if
(
i
>=
5
&&
x
!=
1
)
14
break
;
15
else if
(
c
[
i
] ==
' '
)
16
x
=
i
;
17
else if
(
c
[
i
] ==
'/'
&&
c
[
i
+
1
] !=
' '
&&
i
)
18
x
=
i
+
1
;
19
}
20
}