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 inline-asm/84742
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
ieee
/
acc1.c
blob
e0d969b9ddc9bdd29321f5f506c1281e446d64f2
1
/* Tail call optimizations would reverse the order of additions in func(). */
2
3
double
func
(
const double
*
array
)
4
{
5
double
d
= *
array
;
6
if
(
d
==
0.0
)
7
return
d
;
8
else
9
return
d
+
func
(
array
+
1
);
10
}
11
12
int
main
()
13
{
14
double
values
[] = {
0.1e-100
,
1.0
, -
1.0
,
0.0
};
15
if
(
func
(
values
) !=
0.1e-100
)
16
abort
();
17
exit
(
0
);
18
}