1 /* Test DFP macros defined in <float.h> with DFP support.  */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c2x" } */
4 
5 #include <float.h>
6 
7 #ifndef DEC32_MANT_DIG
8 # error "DEC32_MANT_DIG not defined"
9 #endif
10 
11 #ifndef DEC64_MANT_DIG
12 # error "DEC64_MANT_DIG not defined"
13 #endif
14 
15 #ifndef DEC128_MANT_DIG
16 # error "DEC128_MANT_DIG not defined"
17 #endif
18 
19 #ifndef DEC32_MIN_EXP
20 # error "DEC32_MIN_EXP not defined"
21 #endif
22 
23 #ifndef DEC64_MIN_EXP
24 # error "DEC64_MIN_EXP not defined"
25 #endif
26 
27 #ifndef DEC128_MIN_EXP
28 # error "DEC128_MIN_EXP not defined"
29 #endif
30 
31 #ifndef DEC32_MAX_EXP
32 # error "DEC32_MAX_EXP not defined"
33 #endif
34 
35 #ifndef DEC64_MAX_EXP
36 # error "DEC64_MAX_EXP not defined"
37 #endif
38 
39 #ifndef DEC128_MAX_EXP
40 # error "DEC128_MAX_EXP not defined"
41 #endif
42 
43 #ifndef DEC32_MAX
44 # error "DEC32_MAX not defined"
45 #endif
46 
47 #ifndef DEC64_MAX
48 # error "DEC64_MAX not defined"
49 #endif
50 
51 #ifndef DEC128_MAX
52 # error "DEC128_MAX not defined"
53 #endif
54 
55 #ifndef DEC32_EPSILON
56 # error "DEC32_EPSILON not defined"
57 #endif
58 
59 #ifndef DEC64_EPSILON
60 # error "DEC64_EPSILON not defined"
61 #endif
62 
63 #ifndef DEC128_EPSILON
64 # error "DEC128_EPSILON not defined"
65 #endif
66 
67 #ifndef DEC32_MIN
68 # error "DEC32_MIN not defined"
69 #endif
70 
71 #ifndef DEC64_MIN
72 # error "DEC64_MIN not defined"
73 #endif
74 
75 #ifndef DEC128_MIN
76 # error "DEC128_MIN not defined"
77 #endif
78 
79 #ifndef DEC32_TRUE_MIN
80 # error "DEC32_TRUE_MIN not defined"
81 #endif
82 
83 #ifndef DEC64_TRUE_MIN
84 # error "DEC64_TRUE_MIN not defined"
85 #endif
86 
87 #ifndef DEC128_TRUE_MIN
88 # error "DEC128_TRUE_MIN not defined"
89 #endif
90 
91 /* These macros from TR 24732 should not be defined.  */
92 
93 #ifdef DEC32_SUBNORMAL_MIN
94 # error "DEC32_SUBNORMAL_MIN defined"
95 #endif
96 
97 #ifdef DEC64_SUBNORMAL_MIN
98 # error "DEC64_SUBNORMAL_MIN defined"
99 #endif
100 
101 #ifdef DEC128_SUBNORMAL_MIN
102 # error "DEC128_SUBNORMAL_MIN defined"
103 #endif
104