1 /* Test DFP macros defined in <float.h> with DFP support. TR 24732
2 feature test macro causes SUBNORMAL_MIN macros to be defined but
4 /* { dg-do compile } */
5 /* { dg-options "-std=gnu99" } */
7 #define __STDC_WANT_DEC_FP__
10 #ifndef DEC32_MANT_DIG
11 # error "DEC32_MANT_DIG not defined"
14 #ifndef DEC64_MANT_DIG
15 # error "DEC64_MANT_DIG not defined"
18 #ifndef DEC128_MANT_DIG
19 # error "DEC128_MANT_DIG not defined"
23 # error "DEC32_MIN_EXP not defined"
27 # error "DEC64_MIN_EXP not defined"
30 #ifndef DEC128_MIN_EXP
31 # error "DEC128_MIN_EXP not defined"
35 # error "DEC32_MAX_EXP not defined"
39 # error "DEC64_MAX_EXP not defined"
42 #ifndef DEC128_MAX_EXP
43 # error "DEC128_MAX_EXP not defined"
47 # error "DEC32_MAX not defined"
51 # error "DEC64_MAX not defined"
55 # error "DEC128_MAX not defined"
59 # error "DEC32_EPSILON not defined"
63 # error "DEC64_EPSILON not defined"
66 #ifndef DEC128_EPSILON
67 # error "DEC128_EPSILON not defined"
71 # error "DEC32_MIN not defined"
75 # error "DEC64_MIN not defined"
79 # error "DEC128_MIN not defined"
82 #ifndef DEC32_SUBNORMAL_MIN
83 # error "DEC32_SUBNORMAL_MIN not defined"
86 #ifndef DEC64_SUBNORMAL_MIN
87 # error "DEC64_SUBNORMAL_MIN not defined"
90 #ifndef DEC128_SUBNORMAL_MIN
91 # error "DEC128_SUBNORMAL_MIN not defined"
94 /* These macros from C2X should not be defined. */
97 # error "DEC32_TRUE_MIN defined"
100 #ifdef DEC64_TRUE_MIN
101 # error "DEC64_TRUE_MIN defined"
104 #ifdef DEC128_TRUE_MIN
105 # error "DEC128_TRUE_MIN defined"