1 /* Test for <tgmath.h> in C99. */ 2 /* Origin: Matt Austern <austern@apple.com> 3 /* { dg-do preprocess { target c99_runtime } } */ 4 /* { dg-options "-std=iso9899:1999" } */ 5 /* { dg-add-options c99_runtime } */ 6 7 /* Test that tgmath defines the macros it's supposed to. */ 8 #include <tgmath.h> 9 10 #ifndef acos 11 #error acos undefined 12 #endif 13 14 #ifndef asin 15 #error asin undefined 16 #endif 17 18 #ifndef atan 19 #error atan undefined 20 #endif 21 22 #ifndef acosh 23 #error acosh undefined 24 #endif 25 26 #ifndef asinh 27 #error asinh undefined 28 #endif 29 30 #ifndef atanh 31 #error atanh undefined 32 #endif 33 34 #ifndef cos 35 #error cos undefined 36 #endif 37 38 #ifndef sin 39 #error sin undefined 40 #endif 41 42 #ifndef tan 43 #error tan undefined 44 #endif 45 46 #ifndef cosh 47 #error cosh undefined 48 #endif 49 50 #ifndef sinh 51 #error sinh undefined 52 #endif 53 54 #ifndef tanh 55 #error tanh undefined 56 #endif 57 58 #ifndef exp 59 #error exp undefined 60 #endif 61 62 #ifndef log 63 #error log undefined 64 #endif 65 66 #ifndef pow 67 #error pow undefined 68 #endif 69 70 #ifndef sqrt 71 #error sqrt undefined 72 #endif 73 74 #ifndef fabs 75 #error fabs undefined 76 #endif 77 78 #ifndef atan2 79 #error atan2 undefined 80 #endif 81 82 #ifndef cbrt 83 #error cbrt undefined 84 #endif 85 86 #ifndef ceil 87 #error ceil undefined 88 #endif 89 90 #ifndef copysign 91 #error copysign undefined 92 #endif 93 94 #ifndef erf 95 #error erf undefined 96 #endif 97 98 #ifndef erfc 99 #error erfc undefined 100 #endif 101 102 #ifndef exp2 103 #error exp2 undefined 104 #endif 105 106 #ifndef expm1 107 #error expm1 undefined 108 #endif 109 110 #ifndef fdim 111 #error fdim undefined 112 #endif 113 114 #ifndef floor 115 #error floor undefined 116 #endif 117 118 #ifndef fma 119 #error fma undefined 120 #endif 121 122 #ifndef fmax 123 #error fmax undefined 124 #endif 125 126 #ifndef fmin 127 #error fmin undefined 128 #endif 129 130 #ifndef fmod 131 #error fmod undefined 132 #endif 133 134 #ifndef frexp 135 #error frexp undefined 136 #endif 137 138 #ifndef hypot 139 #error hypot undefined 140 #endif 141 142 #ifndef ilogb 143 #error ilogb undefined 144 #endif 145 146 #ifndef ldexp 147 #error ldexp undefined 148 #endif 149 150 #ifndef lgamma 151 #error lgamma undefined 152 #endif 153 154 #ifndef llrint 155 #error llrint undefined 156 #endif 157 158 #ifndef llround 159 #error llround undefined 160 #endif 161 162 #ifndef log10 163 #error log10 undefined 164 #endif 165 166 #ifndef log1p 167 #error log1p undefined 168 #endif 169 170 #ifndef log2 171 #error log2 undefined 172 #endif 173 174 #ifndef logb 175 #error logb undefined 176 #endif 177 178 #ifndef lrint 179 #error lrint undefined 180 #endif 181 182 #ifndef lround 183 #error lround undefined 184 #endif 185 186 #ifndef nearbyint 187 #error nearbyint undefined 188 #endif 189 190 #ifndef nextafter 191 #error nextafter undefined 192 #endif 193 194 #ifndef nexttoward 195 #error nexttoward undefined 196 #endif 197 198 #ifndef remainder 199 #error remainder undefined 200 #endif 201 202 #ifndef remquo 203 #error remquo undefined 204 #endif 205 206 #ifndef rint 207 #error rint undefined 208 #endif 209 210 #ifndef round 211 #error round undefined 212 #endif 213 214 #ifndef scalbn 215 #error scalbn undefined 216 #endif 217 218 #ifndef scalbln 219 #error scalbln undefined 220 #endif 221 222 #ifndef tgamma 223 #error tgamma undefined 224 #endif 225 226 #ifndef trunc 227 #error trunc undefined 228 #endif 229 230 #ifndef carg 231 #error carg undefined 232 #endif 233 234 #ifndef cimag 235 #error cimag undefined 236 #endif 237 238 #ifndef conj 239 #error conj undefined 240 #endif 241 242 #ifndef cproj 243 #error cproj undefined 244 #endif 245 246 #ifndef creal 247 #error creal undefined 248 #endif 249