libcxx

libcxx mirror with random patches
git clone https://git.neptards.moe/neptards/libcxx.git
Log | Files | Refs

cfloat.pass.cpp (3048B)


      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10  // test cfloat
     11 
     12 #include <cfloat>
     13 
     14 #include "test_macros.h"
     15 
     16 #ifndef FLT_ROUNDS
     17 #error FLT_ROUNDS not defined
     18 #endif
     19 
     20 #ifndef FLT_EVAL_METHOD
     21 #error FLT_EVAL_METHOD not defined
     22 #endif
     23 
     24 #ifndef FLT_RADIX
     25 #error FLT_RADIX not defined
     26 #endif
     27 
     28 #if TEST_STD_VER > 14 && defined(TEST_HAS_C11_FEATURES) && 0
     29 #ifndef FLT_HAS_SUBNORM
     30 #error FLT_HAS_SUBNORM not defined
     31 #endif
     32 
     33 #ifndef DBL_HAS_SUBNORM
     34 #error DBL_HAS_SUBNORM not defined
     35 #endif
     36 
     37 #ifndef LDBL_HAS_SUBNORM
     38 #error LDBL_HAS_SUBNORM not defined
     39 #endif
     40 #endif
     41 
     42 #ifndef FLT_MANT_DIG
     43 #error FLT_MANT_DIG not defined
     44 #endif
     45 
     46 #ifndef DBL_MANT_DIG
     47 #error DBL_MANT_DIG not defined
     48 #endif
     49 
     50 #ifndef LDBL_MANT_DIG
     51 #error LDBL_MANT_DIG not defined
     52 #endif
     53 
     54 #ifndef DECIMAL_DIG
     55 #error DECIMAL_DIG not defined
     56 #endif
     57 
     58 #if TEST_STD_VER > 14 && defined(TEST_HAS_C11_FEATURES) && 0
     59 #ifndef FLT_DECIMAL_DIG
     60 #error FLT_DECIMAL_DIG not defined
     61 #endif
     62 
     63 #ifndef DBL_DECIMAL_DIG
     64 #error DBL_DECIMAL_DIG not defined
     65 #endif
     66 
     67 #ifndef LDBL_DECIMAL_DIG
     68 #error LDBL_DECIMAL_DIG not defined
     69 #endif
     70 #endif
     71 
     72 #ifndef FLT_DIG
     73 #error FLT_DIG not defined
     74 #endif
     75 
     76 #ifndef DBL_DIG
     77 #error DBL_DIG not defined
     78 #endif
     79 
     80 #ifndef LDBL_DIG
     81 #error LDBL_DIG not defined
     82 #endif
     83 
     84 #ifndef FLT_MIN_EXP
     85 #error FLT_MIN_EXP not defined
     86 #endif
     87 
     88 #ifndef DBL_MIN_EXP
     89 #error DBL_MIN_EXP not defined
     90 #endif
     91 
     92 #ifndef LDBL_MIN_EXP
     93 #error LDBL_MIN_EXP not defined
     94 #endif
     95 
     96 #ifndef FLT_MIN_10_EXP
     97 #error FLT_MIN_10_EXP not defined
     98 #endif
     99 
    100 #ifndef DBL_MIN_10_EXP
    101 #error DBL_MIN_10_EXP not defined
    102 #endif
    103 
    104 #ifndef LDBL_MIN_10_EXP
    105 #error LDBL_MIN_10_EXP not defined
    106 #endif
    107 
    108 #ifndef FLT_MAX_EXP
    109 #error FLT_MAX_EXP not defined
    110 #endif
    111 
    112 #ifndef DBL_MAX_EXP
    113 #error DBL_MAX_EXP not defined
    114 #endif
    115 
    116 #ifndef LDBL_MAX_EXP
    117 #error LDBL_MAX_EXP not defined
    118 #endif
    119 
    120 #ifndef FLT_MAX_10_EXP
    121 #error FLT_MAX_10_EXP not defined
    122 #endif
    123 
    124 #ifndef DBL_MAX_10_EXP
    125 #error DBL_MAX_10_EXP not defined
    126 #endif
    127 
    128 #ifndef LDBL_MAX_10_EXP
    129 #error LDBL_MAX_10_EXP not defined
    130 #endif
    131 
    132 #ifndef FLT_MAX
    133 #error FLT_MAX not defined
    134 #endif
    135 
    136 #ifndef DBL_MAX
    137 #error DBL_MAX not defined
    138 #endif
    139 
    140 #ifndef LDBL_MAX
    141 #error LDBL_MAX not defined
    142 #endif
    143 
    144 #ifndef FLT_EPSILON
    145 #error FLT_EPSILON not defined
    146 #endif
    147 
    148 #ifndef DBL_EPSILON
    149 #error DBL_EPSILON not defined
    150 #endif
    151 
    152 #ifndef LDBL_EPSILON
    153 #error LDBL_EPSILON not defined
    154 #endif
    155 
    156 #ifndef FLT_MIN
    157 #error FLT_MIN not defined
    158 #endif
    159 
    160 #ifndef DBL_MIN
    161 #error DBL_MIN not defined
    162 #endif
    163 
    164 #ifndef LDBL_MIN
    165 #error LDBL_MIN not defined
    166 #endif
    167 
    168 #if TEST_STD_VER > 14 && defined(TEST_HAS_C11_FEATURES) && 0
    169 #ifndef FLT_TRUE_MIN
    170 #error FLT_TRUE_MIN not defined
    171 #endif
    172 
    173 #ifndef DBL_TRUE_MIN
    174 #error DBL_TRUE_MIN not defined
    175 #endif
    176 
    177 #ifndef LDBL_TRUE_MIN
    178 #error LDBL_TRUE_MIN not defined
    179 #endif
    180 #endif
    181 
    182 int main()
    183 {
    184 }