aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/dfp/dec-eval-method-2.c
blob: b87f159bf3b63dbf2391c099946dee722598f11b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-D__STDC_WANT_DEC_FP__" } */
                                                                                
/* N1107 4: Characteristics of decimal floating types <float.h>.
   C99 5.2.4.2.2a[2] (New).

   Verify that DEC_EVAL_METHOD is defined by float.h.
   DEC_EVAL_METHOD in <float.h>.  */

#ifdef DEC_EVAL_METHOD
#error DEC_EVAL_METHOD is defined before float.h is included
#endif

#include <float.h>

#ifndef DEC_EVAL_METHOD
#error DEC_EVAL_METHOD is not defined after float.h is included
#endif

int i;