Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / c11-float-5.c
blobbb48695599b0e023648c57fcc1f907507e3a0cf3
1 /* Test sNaN macros for _FloatN and _FloatNx not defined for C11 with
2 __STDC_WANT_IEC_60559_TYPES_EXT__. */
3 /* { dg-do preprocess } */
4 /* { dg-options "-std=c11 -pedantic-errors" } */
6 #define __STDC_WANT_IEC_60559_TYPES_EXT__
7 #include <float.h>
9 #ifdef FLT16_SNAN
10 #error "FLT16_SNAN defined"
11 #endif
13 #ifdef FLT32_SNAN
14 #error "FLT32_SNAN defined"
15 #endif
17 #ifdef FLT64_SNAN
18 #error "FLT64_SNAN defined"
19 #endif
21 #ifdef FLT128_SNAN
22 #error "FLT128_SNAN defined"
23 #endif
25 #ifdef FLT32X_SNAN
26 #error "FLT32X_SNAN defined"
27 #endif
29 #ifdef FLT64X_SNAN
30 #error "FLT64X_SNAN defined"
31 #endif
33 #ifdef FLT128X_SNAN
34 #error "FLT128X_SNAN defined"
35 #endif