]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr103406.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr103406.c
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" } } */