1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Before Clang 9.0, <float.h> does not define FLT_HAS_SUBNORM & friends in C++.
10 // XFAIL: clang-4, clang-5, clang-6, clang-7, clang-8
16 #include "test_macros.h"
19 #error FLT_ROUNDS not defined
22 #ifndef FLT_EVAL_METHOD
23 #error FLT_EVAL_METHOD not defined
27 #error FLT_RADIX not defined
31 #ifndef FLT_HAS_SUBNORM
32 #error FLT_HAS_SUBNORM not defined
35 #ifndef DBL_HAS_SUBNORM
36 #error DBL_HAS_SUBNORM not defined
39 #ifndef LDBL_HAS_SUBNORM
40 #error LDBL_HAS_SUBNORM not defined
45 #error FLT_MANT_DIG not defined
49 #error DBL_MANT_DIG not defined
53 #error LDBL_MANT_DIG not defined
57 #error DECIMAL_DIG not defined
61 #ifndef FLT_DECIMAL_DIG
62 #error FLT_DECIMAL_DIG not defined
65 #ifndef DBL_DECIMAL_DIG
66 #error DBL_DECIMAL_DIG not defined
69 #ifndef LDBL_DECIMAL_DIG
70 #error LDBL_DECIMAL_DIG not defined
75 #error FLT_DIG not defined
79 #error DBL_DIG not defined
83 #error LDBL_DIG not defined
87 #error FLT_MIN_EXP not defined
91 #error DBL_MIN_EXP not defined
95 #error LDBL_MIN_EXP not defined
98 #ifndef FLT_MIN_10_EXP
99 #error FLT_MIN_10_EXP not defined
102 #ifndef DBL_MIN_10_EXP
103 #error DBL_MIN_10_EXP not defined
106 #ifndef LDBL_MIN_10_EXP
107 #error LDBL_MIN_10_EXP not defined
111 #error FLT_MAX_EXP not defined
115 #error DBL_MAX_EXP not defined
119 #error LDBL_MAX_EXP not defined
122 #ifndef FLT_MAX_10_EXP
123 #error FLT_MAX_10_EXP not defined
126 #ifndef DBL_MAX_10_EXP
127 #error DBL_MAX_10_EXP not defined
130 #ifndef LDBL_MAX_10_EXP
131 #error LDBL_MAX_10_EXP not defined
135 #error FLT_MAX not defined
139 #error DBL_MAX not defined
143 #error LDBL_MAX not defined
147 #error FLT_EPSILON not defined
151 #error DBL_EPSILON not defined
155 #error LDBL_EPSILON not defined
159 #error FLT_MIN not defined
163 #error DBL_MIN not defined
167 #error LDBL_MIN not defined
170 #if TEST_STD_VER > 14
172 #error FLT_TRUE_MIN not defined
176 #error DBL_TRUE_MIN not defined
179 #ifndef LDBL_TRUE_MIN
180 #error LDBL_TRUE_MIN not defined
184 int main(int, char**)