175741Smsmith/* Test for <float.h> C99 macros.  */
275741Smsmith/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
375741Smsmith/* { dg-do preprocess } */
475741Smsmith/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
575741Smsmith
675741Smsmith/* This test checks that the C99 macros are defined;
775741Smsmith   it does not check the correctness of their values.  */
875741Smsmith
975741Smsmith#include <float.h>
1075741Smsmith
1175741Smsmith#ifndef FLT_ROUNDS
1275741Smsmith#error "FLT_ROUNDS undefined"
1375741Smsmith#endif
1475741Smsmith
1575741Smsmith#ifndef FLT_RADIX
1675741Smsmith#error "FLT_RADIX undefined"
1775741Smsmith#endif
1875741Smsmith
1975741Smsmith#ifndef FLT_MANT_DIG
2075741Smsmith#error "FLT_MANT_DIG undefined"
2175741Smsmith#endif
2275741Smsmith
2375741Smsmith#ifndef FLT_DIG
2475741Smsmith#error "FLT_DIG undefined"
2575741Smsmith#endif
2675741Smsmith
2775741Smsmith#ifndef FLT_MIN_EXP
2875741Smsmith#error "FLT_MIN_EXP undefined"
2975741Smsmith#endif
3075851Sru
3175741Smsmith#ifndef FLT_MIN_10_EXP
3275741Smsmith#error "FLT_MIN_10_EXP undefined"
3375741Smsmith#endif
3475741Smsmith
3575741Smsmith#ifndef FLT_MAX_EXP
3675741Smsmith#error "FLT_MAX_EXP undefined"
3775741Smsmith#endif
3875741Smsmith
3975741Smsmith#ifndef FLT_MAX_10_EXP
4075741Smsmith#error "FLT_MAX_10_EXP undefined"
4175741Smsmith#endif
4275741Smsmith
4375741Smsmith#ifndef FLT_MAX
4475741Smsmith#error "FLT_MAX undefined"
4575741Smsmith#endif
4684306Sru
4775741Smsmith#ifndef FLT_EPSILON
4875741Smsmith#error "FLT_EPSILON undefined"
4975741Smsmith#endif
5075741Smsmith
5175741Smsmith#ifndef FLT_MIN
5275741Smsmith#error "FLT_MIN undefined"
5375741Smsmith#endif
5475741Smsmith
5575741Smsmith#ifndef DBL_MANT_DIG
5675741Smsmith#error "DBL_MANT_DIG undefined"
5775741Smsmith#endif
5875741Smsmith
5979754Sdd#ifndef DBL_DIG
6075851Sru#error "DBL_DIG undefined"
6175741Smsmith#endif
6275741Smsmith
6375741Smsmith#ifndef DBL_MIN_EXP
6475741Smsmith#error "DBL_MIN_EXP undefined"
6575741Smsmith#endif
66162385Sru
6775741Smsmith#ifndef DBL_MIN_10_EXP
6875741Smsmith#error "DBL_MIN_10_EXP undefined"
6975741Smsmith#endif
7075741Smsmith
7175741Smsmith#ifndef DBL_MAX_EXP
7275851Sru#error "DBL_MAX_EXP undefined"
7375741Smsmith#endif
7475741Smsmith
7575741Smsmith#ifndef DBL_MAX_10_EXP
7675741Smsmith#error "DBL_MAX_10_EXP undefined"
7775851Sru#endif
7875741Smsmith
7975741Smsmith#ifndef DBL_MAX
8075741Smsmith#error "DBL_MAX undefined"
8175741Smsmith#endif
8275741Smsmith
8375741Smsmith#ifndef DBL_EPSILON
8475741Smsmith#error "DBL_EPSILON undefined"
8575741Smsmith#endif
8675741Smsmith
8775741Smsmith#ifndef DBL_MIN
8875741Smsmith#error "DBL_MIN undefined"
8975741Smsmith#endif
9075741Smsmith
9175741Smsmith#ifndef LDBL_MANT_DIG
9275741Smsmith#error "LDBL_MANT_DIG undefined"
9375741Smsmith#endif
9475741Smsmith
9575851Sru#ifndef LDBL_DIG
96119893Sru#error "LDBL_DIG undefined"
9775741Smsmith#endif
9875741Smsmith
9975741Smsmith#ifndef LDBL_MIN_EXP
10075741Smsmith#error "LDBL_MIN_EXP undefined"
10175741Smsmith#endif
10275741Smsmith
10375741Smsmith#ifndef LDBL_MIN_10_EXP
104103662Simp#error "LDBL_MIN_10_EXP undefined"
105103662Simp#endif
106103662Simp
107103662Simp#ifndef LDBL_MAX_EXP
108108317Sschweikh#error "LDBL_MAX_EXP undefined"
10975741Smsmith#endif
11075741Smsmith
11175741Smsmith#ifndef LDBL_MAX_10_EXP
11275741Smsmith#error "LDBL_MAX_10_EXP undefined"
11375741Smsmith#endif
11475741Smsmith
11575741Smsmith#ifndef LDBL_MAX
11675741Smsmith#error "LDBL_MAX undefined"
11775741Smsmith#endif
11875741Smsmith
11975741Smsmith#ifndef LDBL_EPSILON
12075741Smsmith#error "LDBL_EPSILON undefined"
12175741Smsmith#endif
12275741Smsmith
12375741Smsmith#ifndef LDBL_MIN
12475741Smsmith#error "LDBL_MIN undefined"
12575741Smsmith#endif
12675741Smsmith
12775741Smsmith#ifndef FLT_EVAL_METHOD
12875851Sru#error "FLT_EVAL_METHOD undefined"
12975741Smsmith#endif
13075741Smsmith
13175741Smsmith#ifndef DECIMAL_DIG
13275741Smsmith#error "DECIMAL_DIG undefined"
13375741Smsmith#endif
13475741Smsmith