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

source code of libcxx/test/std/depr/depr.c.headers/float_h.compile.pass.cpp