(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
c11-float-4.c
       1  /* Test infinity and NaN macros not defined for C11.  */
       2  /* { dg-do preprocess } */
       3  /* { dg-options "-std=c11 -pedantic-errors" } */
       4  
       5  #include <float.h>
       6  
       7  #ifdef INFINITY
       8  #error "INFINITY defined"
       9  #endif
      10  
      11  #ifdef NAN
      12  #error "NAN defined"
      13  #endif
      14  
      15  #ifdef FLT_SNAN
      16  #error "FLT_SNAN defined"
      17  #endif
      18  
      19  #ifdef DBL_SNAN
      20  #error "DBL_SNAN defined"
      21  #endif
      22  
      23  #ifdef LDBL_SNAN
      24  #error "LDBL_SNAN defined"
      25  #endif