aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c11-float-4.c
blob: ceac6ef5063f7378807724f02cac3dfb7a081846 (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
/* Test infinity and NaN macros not defined for C11.  */
/* { dg-do preprocess } */
/* { dg-options "-std=c11 -pedantic-errors" } */

#include <float.h>

#ifdef INFINITY
#error "INFINITY defined"
#endif

#ifdef NAN
#error "NAN defined"
#endif

#ifdef FLT_SNAN
#error "FLT_SNAN defined"
#endif

#ifdef DBL_SNAN
#error "DBL_SNAN defined"
#endif

#ifdef LDBL_SNAN
#error "LDBL_SNAN defined"
#endif