1 /* Test for <float.h> C99 macros. */
2 /* Origin: Joseph Myers <jsm28@cam.ac.uk> */
3 /* { dg-do preprocess } */
4 /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
6 /* This test checks that the C99 macros are defined;
7 it does not check the correctness of their values. */
12 #error "FLT_ROUNDS undefined"
16 #error "FLT_RADIX undefined"
20 #error "FLT_MANT_DIG undefined"
24 #error "FLT_DIG undefined"
28 #error "FLT_MIN_EXP undefined"
31 #ifndef FLT_MIN_10_EXP
32 #error "FLT_MIN_10_EXP undefined"
36 #error "FLT_MAX_EXP undefined"
39 #ifndef FLT_MAX_10_EXP
40 #error "FLT_MAX_10_EXP undefined"
44 #error "FLT_MAX undefined"
48 #error "FLT_EPSILON undefined"
52 #error "FLT_MIN undefined"
56 #error "DBL_MANT_DIG undefined"
60 #error "DBL_DIG undefined"
64 #error "DBL_MIN_EXP undefined"
67 #ifndef DBL_MIN_10_EXP
68 #error "DBL_MIN_10_EXP undefined"
72 #error "DBL_MAX_EXP undefined"
75 #ifndef DBL_MAX_10_EXP
76 #error "DBL_MAX_10_EXP undefined"
80 #error "DBL_MAX undefined"
84 #error "DBL_EPSILON undefined"
88 #error "DBL_MIN undefined"
92 #error "LDBL_MANT_DIG undefined"
96 #error "LDBL_DIG undefined"
100 #error "LDBL_MIN_EXP undefined"
103 #ifndef LDBL_MIN_10_EXP
104 #error "LDBL_MIN_10_EXP undefined"
108 #error "LDBL_MAX_EXP undefined"
111 #ifndef LDBL_MAX_10_EXP
112 #error "LDBL_MAX_10_EXP undefined"
116 #error "LDBL_MAX undefined"
120 #error "LDBL_EPSILON undefined"
124 #error "LDBL_MIN undefined"
127 #ifndef FLT_EVAL_METHOD
128 #error "FLT_EVAL_METHOD undefined" /* { dg-bogus "undefined" "undefined" { xfail sparc-sun-solaris2.* } } */
132 #error "DECIMAL_DIG undefined" /* { dg-bogus "undefined" "undefined" { xfail sparc-sun-solaris2.* } } */