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
/
pr103721.c
blob
6ec2e44b30f1cc2155373415c6576e35cac1c7f9
1
// { dg-do run }
2
// { dg-options "-O2" }
3
4
int
ipos
=
0
;
5
int
f
(
int
world
)
6
{
7
int
searchVolume
=
world
;
8
int
currentVolume
=
0
;
9
while
(
currentVolume
!=
searchVolume
&&
searchVolume
) {
10
currentVolume
=
searchVolume
;
11
if
(
ipos
!=
0
)
12
searchVolume
=
0
;
13
else
14
searchVolume
=
1
;
15
}
16
return
(
currentVolume
);
17
}
18
int
main
()
19
{
20
const int
i
=
f
(
1111
);
21
__builtin_printf
(
"%d
\n
"
, (
int
)(
i
));
22
if
(
i
!=
1
)
23
__builtin_abort
();
24
return
0
;
25
}