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
PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20070424-1.c
blob
4a9f9c916e4e2f4a1e27671a78660d0064103fc8
1
extern
void
abort
(
void
);
2
extern
void
exit
(
int
);
3
4
void
do_exit
(
void
) {
exit
(
0
); }
5
void
do_abort
(
void
) {
abort
(); }
6
7
void
foo
(
int
x
,
int
a
)
8
{
9
if
(
x
<
a
)
10
goto
doit
;
11
do_exit
();
12
if
(
x
!=
a
)
13
goto
doit
;
14
15
/* else */
16
do_abort
();
17
return
;
18
19
doit
:
20
do_abort
();
21
}
22
23
int
main
()
24
{
25
foo
(
1
,
0
);
26
return
0
;
27
}