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 <float.h> 11 12 #include <float.h> 13 14 #ifndef FLT_ROUNDS 15 #error FLT_ROUNDS not defined 16 #endif 17 18 #ifndef FLT_EVAL_METHOD 19 #if !defined(__clang__) && !defined(__FLT_EVAL_METHOD__) 20 // GCC defines __FLT_EVAL_METHOD__ in lib/gcc/arm-linux-androideabi/4.8/include/float.h. 21 // In libc++ include/cfloat define FLT_EVAL_METHOD to __FLT_EVAL_METHOD__ 22 #error FLT_EVAL_METHOD not defined 23 #endif 24 #endif 25 26 #ifndef FLT_RADIX 27 #error FLT_RADIX not defined 28 #endif 29 30 #ifndef FLT_MANT_DIG 31 #error FLT_MANT_DIG not defined 32 #endif 33 34 #ifndef DBL_MANT_DIG 35 #error DBL_MANT_DIG not defined 36 #endif 37 38 #ifndef LDBL_MANT_DIG 39 #error LDBL_MANT_DIG not defined 40 #endif 41 42 #ifndef DECIMAL_DIG 43 #if !defined(__clang__) && !defined(__DECIMAL_DIG__) 44 // GCC defines __DECIMAL_DIG__ in lib/gcc/arm-linux-androideabi/4.8/include/float.h. 45 // In libc++ include/cfloat define DECIMAL_DIG to __DECIMAL_DIG__ 46 #error DECIMAL_DIG not defined 47 #endif 48 #endif 49 50 #ifndef FLT_DIG 51 #error FLT_DIG not defined 52 #endif 53 54 #ifndef DBL_DIG 55 #error DBL_DIG not defined 56 #endif 57 58 #ifndef LDBL_DIG 59 #error LDBL_DIG not defined 60 #endif 61 62 #ifndef FLT_MIN_EXP 63 #error FLT_MIN_EXP not defined 64 #endif 65 66 #ifndef DBL_MIN_EXP 67 #error DBL_MIN_EXP not defined 68 #endif 69 70 #ifndef LDBL_MIN_EXP 71 #error LDBL_MIN_EXP not defined 72 #endif 73 74 #ifndef FLT_MIN_10_EXP 75 #error FLT_MIN_10_EXP not defined 76 #endif 77 78 #ifndef DBL_MIN_10_EXP 79 #error DBL_MIN_10_EXP not defined 80 #endif 81 82 #ifndef LDBL_MIN_10_EXP 83 #error LDBL_MIN_10_EXP not defined 84 #endif 85 86 #ifndef FLT_MAX_EXP 87 #error FLT_MAX_EXP not defined 88 #endif 89 90 #ifndef DBL_MAX_EXP 91 #error DBL_MAX_EXP not defined 92 #endif 93 94 #ifndef LDBL_MAX_EXP 95 #error LDBL_MAX_EXP not defined 96 #endif 97 98 #ifndef FLT_MAX_10_EXP 99 #error FLT_MAX_10_EXP not defined 100 #endif 101 102 #ifndef DBL_MAX_10_EXP 103 #error DBL_MAX_10_EXP not defined 104 #endif 105 106 #ifndef LDBL_MAX_10_EXP 107 #error LDBL_MAX_10_EXP not defined 108 #endif 109 110 #ifndef FLT_MAX 111 #error FLT_MAX not defined 112 #endif 113 114 #ifndef DBL_MAX 115 #error DBL_MAX not defined 116 #endif 117 118 #ifndef LDBL_MAX 119 #error LDBL_MAX not defined 120 #endif 121 122 #ifndef FLT_EPSILON 123 #error FLT_EPSILON not defined 124 #endif 125 126 #ifndef DBL_EPSILON 127 #error DBL_EPSILON not defined 128 #endif 129 130 #ifndef LDBL_EPSILON 131 #error LDBL_EPSILON not defined 132 #endif 133 134 #ifndef FLT_MIN 135 #error FLT_MIN not defined 136 #endif 137 138 #ifndef DBL_MIN 139 #error DBL_MIN not defined 140 #endif 141 142 #ifndef LDBL_MIN 143 #error LDBL_MIN not defined 144 #endif 145 main()146int main() 147 { 148 } 149