libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr106819.c
blob1272d4b5805ed6eefdf1193e8d0e5c90f6ed297d
1 // { dg-do compile }
2 // { dg-options "-O2 -fdump-tree-evrp-details" }
4 static int isNaN(double x)
6 return x != x;
9 static double opCmpProper(int lhs, double rhs)
11 return lhs < rhs ? -1.0
12 : lhs > rhs ? 1.0
13 : lhs == rhs ? 0.0
14 : __builtin_nan("");
17 int main()
19 if (!isNaN(opCmpProper(41, __builtin_nan(""))))
20 __builtin_abort();
21 return 0;
24 // { dg-final {scan-tree-dump-not "Folds to: 0.0" "evrp" } }