1  /* Test DFP macros defined in <float.h> with DFP support.  TR 24732
       2     feature test macro causes *_SUBNORMAL_MIN macros to be defined.  */
       3  /* { dg-do compile } */
       4  /* { dg-options "-std=c2x" } */
       5  
       6  #define __STDC_WANT_DEC_FP__
       7  #include <float.h>
       8  
       9  #ifndef DEC32_MANT_DIG
      10  # error "DEC32_MANT_DIG not defined"
      11  #endif
      12  
      13  #ifndef DEC64_MANT_DIG
      14  # error "DEC64_MANT_DIG not defined"
      15  #endif
      16  
      17  #ifndef DEC128_MANT_DIG
      18  # error "DEC128_MANT_DIG not defined"
      19  #endif
      20  
      21  #ifndef DEC32_MIN_EXP
      22  # error "DEC32_MIN_EXP not defined"
      23  #endif
      24  
      25  #ifndef DEC64_MIN_EXP
      26  # error "DEC64_MIN_EXP not defined"
      27  #endif
      28  
      29  #ifndef DEC128_MIN_EXP
      30  # error "DEC128_MIN_EXP not defined"
      31  #endif
      32  
      33  #ifndef DEC32_MAX_EXP
      34  # error "DEC32_MAX_EXP not defined"
      35  #endif
      36  
      37  #ifndef DEC64_MAX_EXP
      38  # error "DEC64_MAX_EXP not defined"
      39  #endif
      40  
      41  #ifndef DEC128_MAX_EXP
      42  # error "DEC128_MAX_EXP not defined"
      43  #endif
      44  
      45  #ifndef DEC32_MAX
      46  # error "DEC32_MAX not defined"
      47  #endif
      48  
      49  #ifndef DEC64_MAX
      50  # error "DEC64_MAX not defined"
      51  #endif
      52  
      53  #ifndef DEC128_MAX
      54  # error "DEC128_MAX not defined"
      55  #endif
      56  
      57  #ifndef DEC32_EPSILON
      58  # error "DEC32_EPSILON not defined"
      59  #endif
      60  
      61  #ifndef DEC64_EPSILON
      62  # error "DEC64_EPSILON not defined"
      63  #endif
      64  
      65  #ifndef DEC128_EPSILON
      66  # error "DEC128_EPSILON not defined"
      67  #endif
      68  
      69  #ifndef DEC32_MIN
      70  # error "DEC32_MIN not defined"
      71  #endif
      72  
      73  #ifndef DEC64_MIN
      74  # error "DEC64_MIN not defined"
      75  #endif
      76  
      77  #ifndef DEC128_MIN
      78  # error "DEC128_MIN not defined"
      79  #endif
      80  
      81  #ifndef DEC32_TRUE_MIN
      82  # error "DEC32_TRUE_MIN not defined"
      83  #endif
      84  
      85  #ifndef DEC64_TRUE_MIN
      86  # error "DEC64_TRUE_MIN not defined"
      87  #endif
      88  
      89  #ifndef DEC128_TRUE_MIN
      90  # error "DEC128_TRUE_MIN not defined"
      91  #endif
      92  
      93  #ifndef DEC32_SUBNORMAL_MIN
      94  # error "DEC32_SUBNORMAL_MIN not defined"
      95  #endif
      96  
      97  #ifndef DEC64_SUBNORMAL_MIN
      98  # error "DEC64_SUBNORMAL_MIN not defined"
      99  #endif
     100  
     101  #ifndef DEC128_SUBNORMAL_MIN
     102  # error "DEC128_SUBNORMAL_MIN not defined"
     103  #endif