Revise -mdisable-fpregs option and add new -msoft-mult option
[official-gcc.git] / gcc / testsuite / gcc.dg / c11-float-4.c
blobceac6ef5063f7378807724f02cac3dfb7a081846
1 /* Test infinity and NaN macros not defined for C11. */
2 /* { dg-do preprocess } */
3 /* { dg-options "-std=c11 -pedantic-errors" } */
5 #include <float.h>
7 #ifdef INFINITY
8 #error "INFINITY defined"
9 #endif
11 #ifdef NAN
12 #error "NAN defined"
13 #endif
15 #ifdef FLT_SNAN
16 #error "FLT_SNAN defined"
17 #endif
19 #ifdef DBL_SNAN
20 #error "DBL_SNAN defined"
21 #endif
23 #ifdef LDBL_SNAN
24 #error "LDBL_SNAN defined"
25 #endif