1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // test cfloat 11 12 #include <cfloat> 13 14 #ifndef FLT_ROUNDS 15 #error FLT_ROUNDS not defined 16 #endif 17 18 #ifndef FLT_EVAL_METHOD 19 #error FLT_EVAL_METHOD not defined 20 #endif 21 22 #ifndef FLT_RADIX 23 #error FLT_RADIX not defined 24 #endif 25 26 #if TEST_STD_VER > 14 && defined(TEST_HAS_C11_FEATURES) 27 #ifndef FLT_HAS_SUBNORM 28 #error FLT_HAS_SUBNORM not defined 29 #endif 30 31 #ifndef DBL_HAS_SUBNORM 32 #error DBL_HAS_SUBNORM not defined 33 #endif 34 35 #ifndef LDBL_HAS_SUBNORM 36 #error LDBL_HAS_SUBNORM not defined 37 #endif 38 #endif 39 40 #ifndef FLT_MANT_DIG 41 #error FLT_MANT_DIG not defined 42 #endif 43 44 #ifndef DBL_MANT_DIG 45 #error DBL_MANT_DIG not defined 46 #endif 47 48 #ifndef LDBL_MANT_DIG 49 #error LDBL_MANT_DIG not defined 50 #endif 51 52 #ifndef DECIMAL_DIG 53 #error DECIMAL_DIG not defined 54 #endif 55 56 #if TEST_STD_VER > 14 && defined(TEST_HAS_C11_FEATURES) 57 #ifndef FLT_DECIMAL_DIG 58 #error FLT_DECIMAL_DIG not defined 59 #endif 60 61 #ifndef DBL_DECIMAL_DIG 62 #error DBL_DECIMAL_DIG not defined 63 #endif 64 65 #ifndef LDBL_DECIMAL_DIG 66 #error LDBL_DECIMAL_DIG not defined 67 #endif 68 #endif 69 70 #ifndef FLT_DIG 71 #error FLT_DIG not defined 72 #endif 73 74 #ifndef DBL_DIG 75 #error DBL_DIG not defined 76 #endif 77 78 #ifndef LDBL_DIG 79 #error LDBL_DIG not defined 80 #endif 81 82 #ifndef FLT_MIN_EXP 83 #error FLT_MIN_EXP not defined 84 #endif 85 86 #ifndef DBL_MIN_EXP 87 #error DBL_MIN_EXP not defined 88 #endif 89 90 #ifndef LDBL_MIN_EXP 91 #error LDBL_MIN_EXP not defined 92 #endif 93 94 #ifndef FLT_MIN_10_EXP 95 #error FLT_MIN_10_EXP not defined 96 #endif 97 98 #ifndef DBL_MIN_10_EXP 99 #error DBL_MIN_10_EXP not defined 100 #endif 101 102 #ifndef LDBL_MIN_10_EXP 103 #error LDBL_MIN_10_EXP not defined 104 #endif 105 106 #ifndef FLT_MAX_EXP 107 #error FLT_MAX_EXP not defined 108 #endif 109 110 #ifndef DBL_MAX_EXP 111 #error DBL_MAX_EXP not defined 112 #endif 113 114 #ifndef LDBL_MAX_EXP 115 #error LDBL_MAX_EXP not defined 116 #endif 117 118 #ifndef FLT_MAX_10_EXP 119 #error FLT_MAX_10_EXP not defined 120 #endif 121 122 #ifndef DBL_MAX_10_EXP 123 #error DBL_MAX_10_EXP not defined 124 #endif 125 126 #ifndef LDBL_MAX_10_EXP 127 #error LDBL_MAX_10_EXP not defined 128 #endif 129 130 #ifndef FLT_MAX 131 #error FLT_MAX not defined 132 #endif 133 134 #ifndef DBL_MAX 135 #error DBL_MAX not defined 136 #endif 137 138 #ifndef LDBL_MAX 139 #error LDBL_MAX not defined 140 #endif 141 142 #ifndef FLT_EPSILON 143 #error FLT_EPSILON not defined 144 #endif 145 146 #ifndef DBL_EPSILON 147 #error DBL_EPSILON not defined 148 #endif 149 150 #ifndef LDBL_EPSILON 151 #error LDBL_EPSILON not defined 152 #endif 153 154 #ifndef FLT_MIN 155 #error FLT_MIN not defined 156 #endif 157 158 #ifndef DBL_MIN 159 #error DBL_MIN not defined 160 #endif 161 162 #ifndef LDBL_MIN 163 #error LDBL_MIN not defined 164 #endif 165 166 #if TEST_STD_VER > 14 && defined(TEST_HAS_C11_FEATURES) 167 #ifndef FLT_TRUE_MIN 168 #error FLT_TRUE_MIN not defined 169 #endif 170 171 #ifndef DBL_TRUE_MIN 172 #error DBL_TRUE_MIN not defined 173 #endif 174 175 #ifndef LDBL_TRUE_MIN 176 #error LDBL_TRUE_MIN not defined 177 #endif 178 #endif 179 180 int main() 181 { 182 } 183