blob: ceac6ef5063f7378807724f02cac3dfb7a081846 [file] [log] [blame]
/* 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