(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
c2x-float-no-dfp-3.c
       1  /* Test DFP macros not defined in <float.h> if no DFP support.
       2     Infinity and NaN macros.  */
       3  /* { dg-do compile { target { ! dfp } } } */
       4  /* { dg-options "-std=c2x" } */
       5  
       6  #include <float.h>
       7  
       8  #ifdef DEC_INFINITY
       9  # error "DEC_INFINITY defined"
      10  #endif
      11  
      12  #ifdef DEC_NAN
      13  # error "DEC_NAN defined"
      14  #endif
      15  
      16  #ifdef DEC32_SNAN
      17  # error "DEC32_SNAN defined"
      18  #endif
      19  
      20  #ifdef DEC64_SNAN
      21  # error "DEC64_SNAN defined"
      22  #endif
      23  
      24  #ifdef DEC128_SNAN
      25  # error "DEC128_SNAN defined"
      26  #endif