1 /* Test NAN macro. Runtime exceptions test, to verify NaN is quiet
4 /* { dg-require-effective-target fenv_exceptions } */
5 /* { dg-options "-std=c23 -pedantic-errors" } */
6 /* { dg-add-options ieee } */
11 /* This should be defined if and only if quiet NaNs are supported for
12 type float. If the testsuite gains effective-target support for
13 targets not supporting NaNs, or not supporting them for all types,
14 this test should only be run for targets supporting quiet NaNs for
17 #error "NAN undefined"
20 volatile float f
= NAN
;
22 extern void abort (void);
23 extern void exit (int);
29 if (fetestexcept (FE_INVALID
))