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
2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
fold-reassoc-1.c
blob
88d5dd89cd790f250c20e8e7884c67f8d81d9bc9
1
/* { dg-do compile } */
2
/* { dg-options "-O -ffast-math -fdump-tree-original" } */
3
4
double
foo
(
double
x
)
5
{
6
return
(
x
+
0.5
-
x
-
0.5
);
7
}
8
9
/* { dg-final { scan-tree-dump "return 0.0;" "original" } } */
10
/* { dg-final { cleanup-tree-dump "original" } } */