1 /* Test for <float.h> C90 macros. */
2 /* Origin: Joseph Myers <jsm28@cam.ac.uk> */
3 /* { dg-do preprocess } */
4 /* { dg-options "-std=iso9899:1990 -pedantic-errors" } */
6 /* This test checks that the C90 macros (but not the C99 or C1X ones)
7 are defined; it does not check the correctness of their values. */
12 #error "FLT_ROUNDS undefined"
16 #error "FLT_RADIX undefined"
20 #error "FLT_MANT_DIG undefined"
24 #error "FLT_DIG undefined"
28 #error "FLT_MIN_EXP undefined"
31 #ifndef FLT_MIN_10_EXP
32 #error "FLT_MIN_10_EXP undefined"
36 #error "FLT_MAX_EXP undefined"
39 #ifndef FLT_MAX_10_EXP
40 #error "FLT_MAX_10_EXP undefined"
44 #error "FLT_MAX undefined"
48 #error "FLT_EPSILON undefined"
52 #error "FLT_MIN undefined"
56 #error "DBL_MANT_DIG undefined"
60 #error "DBL_DIG undefined"
64 #error "DBL_MIN_EXP undefined"
67 #ifndef DBL_MIN_10_EXP
68 #error "DBL_MIN_10_EXP undefined"
72 #error "DBL_MAX_EXP undefined"
75 #ifndef DBL_MAX_10_EXP
76 #error "DBL_MAX_10_EXP undefined"
80 #error "DBL_MAX undefined"
84 #error "DBL_EPSILON undefined"
88 #error "DBL_MIN undefined"
92 #error "LDBL_MANT_DIG undefined"
96 #error "LDBL_DIG undefined"
100 #error "LDBL_MIN_EXP undefined"
103 #ifndef LDBL_MIN_10_EXP
104 #error "LDBL_MIN_10_EXP undefined"
108 #error "LDBL_MAX_EXP undefined"
111 #ifndef LDBL_MAX_10_EXP
112 #error "LDBL_MAX_10_EXP undefined"
116 #error "LDBL_MAX undefined"
120 #error "LDBL_EPSILON undefined"
124 #error "LDBL_MIN undefined"
127 #ifdef FLT_EVAL_METHOD
128 #error "FLT_EVAL_METHOD defined"
132 #error "DECIMAL_DIG defined"
135 #ifdef FLT_DECIMAL_DIG
136 #error "FLT_DECIMAL_DIG defined"
139 #ifdef DBL_DECIMAL_DIG
140 #error "DBL_DECIMAL_DIG defined"
143 #ifdef LDBL_DECIMAL_DIG
144 #error "LDBL_DECIMAL_DIG defined"
147 #ifdef FLT_HAS_SUBNORM
148 #error "FLT_HAS_SUBNORM defined"
151 #ifdef DBL_HAS_SUBNORM
152 #error "DBL_HAS_SUBNORM defined"
155 #ifdef LDBL_HAS_SUBNORM
156 #error "LDBL_HAS_SUBNORM defined"
160 #error "FLT_TRUE_MIN defined"
164 #error "DBL_TRUE_MIN defined"
168 #error "LDBL_TRUE_MIN defined"