aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c23-float-no-dfp-3.c
blob: 39236493e32b71cf852e7577067e6f52003c2927 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Test DFP macros not defined in <float.h> if no DFP support.
   Infinity and NaN macros.  */
/* { dg-do compile { target { ! dfp } } } */
/* { dg-options "-std=c23" } */

#include <float.h>

#ifdef DEC_INFINITY
# error "DEC_INFINITY defined"
#endif

#ifdef DEC_NAN
# error "DEC_NAN defined"
#endif

#ifdef DEC32_SNAN
# error "DEC32_SNAN defined"
#endif

#ifdef DEC64_SNAN
# error "DEC64_SNAN defined"
#endif

#ifdef DEC128_SNAN
# error "DEC128_SNAN defined"
#endif