(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
dfp/
c2x-float-dfp-5.c
       1  /* Test DEC_NAN defined in <float.h> with DFP support.  */
       2  /* { dg-do run } */
       3  /* { dg-options "-std=c2x" } */
       4  
       5  #include <float.h>
       6  
       7  #ifndef DEC_NAN
       8  # error "DEC_NAN not defined"
       9  #endif
      10  
      11  volatile _Decimal32 d = DEC_NAN;
      12  
      13  extern void abort (void);
      14  extern void exit (int);
      15  
      16  int
      17  main (void)
      18  {
      19    (void) _Generic (DEC_NAN, _Decimal32 : 0);
      20    if (!__builtin_isnan (DEC_NAN))
      21      abort ();
      22    if (!__builtin_isnan (d))
      23      abort ();
      24    exit (0);
      25  }