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
/
20001108-1.c
blob
a21d5b0f98f292064cf2c69a5486ec1df96e2dd9
1
/* { dg-do run } */
2
/* { dg-options "-O2 -fomit-frame-pointer" } */
3
4
void
die
(
long
)
__attribute__
((
noreturn
));
5
6
void
die
(
long
e
)
7
{
8
abort
();
9
for
(;;);
10
}
11
12
long
foo
(
double
i
)
13
{
14
if
(
i
!=
2.0
)
15
abort
();
16
return
26
;
17
}
18
19
long
bar
(
long
i
,
double
x
)
20
{
21
if
(
x
<
0
)
die
(
1
);
22
return
foo
(
x
);
23
}
24
25
main
()
26
{
27
if
(
bar
(
0
,
2.0
) !=
26
)
28
abort
();
29
exit
(
0
);
30
}