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
svn merge -r102224:107263 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_4-branch
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
20031216-1.c
blob
d8ee0703d7f6d328dd130572a7f2ca5b46c214f1
1
/* This used to abort due to a loop bug on s390*. */
2
3
/* { dg-do run } */
4
/* { dg-options "-O2" } */
5
/* { dg-options "-O2 -fPIC" { target s390*-*-* } } */
6
7
int
count
=
0
;
8
char
*
str
;
9
10
void
test
(
int
flag
)
11
{
12
char
*
p
;
13
14
for
(;;)
15
{
16
if
(
count
>
5
)
17
return
;
18
19
p
=
"test"
;
20
21
if
(
flag
)
22
count
++;
23
24
str
=
p
;
25
}
26
}
27
28
int
main
(
void
)
29
{
30
test
(
1
);
31
32
if
(
str
[
0
] !=
't'
)
33
abort
();
34
35
return
0
;
36
}
37