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
Require target lra in gcc.dg/pr108095.c
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr103406.c
blob
9c7b83b2e9eadbe032eba26ca8ac2bfc8185a25e
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-optimized" } */
3
4
#define HUGE __DBL_MAX__
5
#define INF (HUGE + HUGE)
6
#define NAN (INF - INF)
7
8
double
foo
() {
9
double
x
= -
NAN
;
10
double
y
=
NAN
;
11
return
x
+
y
;
12
}
13
14
/* { dg-final { scan-tree-dump-not "return 0\.0" "optimized" } } */