tree-optimization/111233 - loop splitting miscompile
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / inf-compare-5.c
blob37289b4771f8b92e21d4bb4e1baf6ab4b87faf03
1 /* { dg-do run } */
2 /* { dg-add-options ieee } */
3 /* { dg-require-effective-target fenv_exceptions_double } */
5 #include <fenv.h>
7 extern void abort (void);
8 extern void exit (int);
10 volatile double x = __builtin_nan ("");
11 volatile int i;
13 int
14 main (void)
16 i = x == __builtin_inf ();
17 if (i != 0 || fetestexcept (FE_INVALID))
18 abort ();