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
/
unsafe-fp-assoc.c
blob
d67fef023214ee3fdf2d3d248e693af6a3b30798
1
#include <float.h>
2
3
extern
void
abort
(
void
);
4
5
static const double
C
=
DBL_MAX
;
6
7
double
foo
(
double
x
)
8
{
9
return
( ( (
x
*
C
) *
C
) *
C
);
10
}
11
12
int
main
()
13
{
14
double
d
=
foo
(
0.0
);
15
if
(
d
!=
0.0
)
16
abort
();
17
18
return
0
;
19
}