1 /* Test _Float64 <float.h> macros. */
3 /* { dg-options "" } */
4 /* { dg-add-options float64 } */
5 /* { dg-add-options ieee } */
6 /* { dg-require-effective-target float64_runtime } */
10 #include "floatn-floath.h"
12 #ifndef FLT64_MANT_DIG
13 # error "FLT64_MANT_DIG undefined"
16 #ifndef FLT64_DECIMAL_DIG
17 # error "FLT64_DECIMAL_DIG undefined"
21 # error "FLT64_DIG undefined"
25 # error "FLT64_MIN_EXP undefined"
28 #ifndef FLT64_MIN_10_EXP
29 # error "FLT64_MIN_10_EXP undefined"
33 # error "FLT64_MAX_EXP undefined"
36 #ifndef FLT64_MAX_10_EXP
37 # error "FLT64_MAX_10_EXP undefined"
41 # error "FLT64_MAX undefined"
45 # error "FLT64_EPSILON undefined"
49 # error "FLT64_MIN undefined"
52 #ifndef FLT64_TRUE_MIN
53 # error "FLT64_TRUE_MIN undefined"
56 #if FLT64_MANT_DIG != 53 || FLT64_MAX_EXP != 1024 || FLT64_MIN_EXP != -1021
57 # error "_Float64 bad format"