| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-D__STDC_WANT_DEC_FP__" } */ |
| 3 |
|
| 4 |
/* N1107 4: Characteristics of decimal floating types <float.h>. |
| 5 |
C99 5.2.4.2.2a[2] (New). |
| 6 |
|
| 7 |
Verify that DEC_EVAL_METHOD is defined by float.h. |
| 8 |
DEC_EVAL_METHOD in <float.h>. */ |
| 9 |
|
| 10 |
#ifdef DEC_EVAL_METHOD |
| 11 |
#error DEC_EVAL_METHOD is defined before float.h is included |
| 12 |
#endif |
| 13 |
|
| 14 |
#include <float.h> |
| 15 |
|
| 16 |
#ifndef DEC_EVAL_METHOD |
| 17 |
#error DEC_EVAL_METHOD is not defined after float.h is included |
| 18 |
#endif |
| 19 |
|
| 20 |
int i; |