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