gcc/testsuite/gcc.dg/c11-float-6.c
raw| 1 | /* Test *_IS_IEC_60559 not defined for C11. */ |
| 2 | /* { dg-do preprocess } */ |
| 3 | /* { dg-options "-std=c11 -pedantic-errors" } */ |
| 4 | |
| 5 | #include <float.h> |
| 6 | |
| 7 | #ifdef FLT_IS_IEC_60559 |
| 8 | #error "FLT_IS_IEC_60559 defined" |
| 9 | #endif |
| 10 | |
| 11 | #ifdef DBL_IS_IEC_60559 |
| 12 | #error "DBL_IS_IEC_60559 defined" |
| 13 | #endif |
| 14 | |
| 15 | #ifdef LDBL_IS_IEC_60559 |
| 16 | #error "LDBL_IS_IEC_60559 defined" |
| 17 | #endif |