]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/dfp/c2x-float-dfp-1.c
ee5e67896179061298201bc9387b1fac0adfca24
1 /* Test DFP macros defined in <float.h> with DFP support. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c2x" } */
8 # error "DEC32_MANT_DIG not defined"
11 #ifndef DEC64_MANT_DIG
12 # error "DEC64_MANT_DIG not defined"
15 #ifndef DEC128_MANT_DIG
16 # error "DEC128_MANT_DIG not defined"
20 # error "DEC32_MIN_EXP not defined"
24 # error "DEC64_MIN_EXP not defined"
27 #ifndef DEC128_MIN_EXP
28 # error "DEC128_MIN_EXP not defined"
32 # error "DEC32_MAX_EXP not defined"
36 # error "DEC64_MAX_EXP not defined"
39 #ifndef DEC128_MAX_EXP
40 # error "DEC128_MAX_EXP not defined"
44 # error "DEC32_MAX not defined"
48 # error "DEC64_MAX not defined"
52 # error "DEC128_MAX not defined"
56 # error "DEC32_EPSILON not defined"
60 # error "DEC64_EPSILON not defined"
63 #ifndef DEC128_EPSILON
64 # error "DEC128_EPSILON not defined"
68 # error "DEC32_MIN not defined"
72 # error "DEC64_MIN not defined"
76 # error "DEC128_MIN not defined"
79 #ifndef DEC32_TRUE_MIN
80 # error "DEC32_TRUE_MIN not defined"
83 #ifndef DEC64_TRUE_MIN
84 # error "DEC64_TRUE_MIN not defined"
87 #ifndef DEC128_TRUE_MIN
88 # error "DEC128_TRUE_MIN not defined"
91 /* These macros from TR 24732 should not be defined. */
93 #ifdef DEC32_SUBNORMAL_MIN
94 # error "DEC32_SUBNORMAL_MIN defined"
97 #ifdef DEC64_SUBNORMAL_MIN
98 # error "DEC64_SUBNORMAL_MIN defined"
101 #ifdef DEC128_SUBNORMAL_MIN
102 # error "DEC128_SUBNORMAL_MIN defined"