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