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
2013-10-21 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr56023.c
blob
ae0117bc21bd4d93fc42b93e1339d704002e3d8a
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
}