libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / c23-float-no-dfp-3.c
blob39236493e32b71cf852e7577067e6f52003c2927
1 /* Test DFP macros not defined in <float.h> if no DFP support.
2 Infinity and NaN macros. */
3 /* { dg-do compile { target { ! dfp } } } */
4 /* { dg-options "-std=c23" } */
6 #include <float.h>
8 #ifdef DEC_INFINITY
9 # error "DEC_INFINITY defined"
10 #endif
12 #ifdef DEC_NAN
13 # error "DEC_NAN defined"
14 #endif
16 #ifdef DEC32_SNAN
17 # error "DEC32_SNAN defined"
18 #endif
20 #ifdef DEC64_SNAN
21 # error "DEC64_SNAN defined"
22 #endif
24 #ifdef DEC128_SNAN
25 # error "DEC128_SNAN defined"
26 #endif