S/390: Allow immediates in loc expander
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-tgmath-1.c
blobcfa02a91d33f1672625fc4c7f47c1436eb7a48a5
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 /* { dg-require-effective-target tgmath_h } */
8 /* Test that tgmath defines the macros it's supposed to. */
9 #include <tgmath.h>
11 #ifndef acos
12 #error acos undefined
13 #endif
15 #ifndef asin
16 #error asin undefined
17 #endif
19 #ifndef atan
20 #error atan undefined
21 #endif
23 #ifndef acosh
24 #error acosh undefined
25 #endif
27 #ifndef asinh
28 #error asinh undefined
29 #endif
31 #ifndef atanh
32 #error atanh undefined
33 #endif
35 #ifndef cos
36 #error cos undefined
37 #endif
39 #ifndef sin
40 #error sin undefined
41 #endif
43 #ifndef tan
44 #error tan undefined
45 #endif
47 #ifndef cosh
48 #error cosh undefined
49 #endif
51 #ifndef sinh
52 #error sinh undefined
53 #endif
55 #ifndef tanh
56 #error tanh undefined
57 #endif
59 #ifndef exp
60 #error exp undefined
61 #endif
63 #ifndef log
64 #error log undefined
65 #endif
67 #ifndef pow
68 #error pow undefined
69 #endif
71 #ifndef sqrt
72 #error sqrt undefined
73 #endif
75 #ifndef fabs
76 #error fabs undefined
77 #endif
79 #ifndef atan2
80 #error atan2 undefined
81 #endif
83 #ifndef cbrt
84 #error cbrt undefined
85 #endif
87 #ifndef ceil
88 #error ceil undefined
89 #endif
91 #ifndef copysign
92 #error copysign undefined
93 #endif
95 #ifndef erf
96 #error erf undefined
97 #endif
99 #ifndef erfc
100 #error erfc undefined
101 #endif
103 #ifndef exp2
104 #error exp2 undefined
105 #endif
107 #ifndef expm1
108 #error expm1 undefined
109 #endif
111 #ifndef fdim
112 #error fdim undefined
113 #endif
115 #ifndef floor
116 #error floor undefined
117 #endif
119 #ifndef fma
120 #error fma undefined
121 #endif
123 #ifndef fmax
124 #error fmax undefined
125 #endif
127 #ifndef fmin
128 #error fmin undefined
129 #endif
131 #ifndef fmod
132 #error fmod undefined
133 #endif
135 #ifndef frexp
136 #error frexp undefined
137 #endif
139 #ifndef hypot
140 #error hypot undefined
141 #endif
143 #ifndef ilogb
144 #error ilogb undefined
145 #endif
147 #ifndef ldexp
148 #error ldexp undefined
149 #endif
151 #ifndef lgamma
152 #error lgamma undefined
153 #endif
155 #ifndef llrint
156 #error llrint undefined
157 #endif
159 #ifndef llround
160 #error llround undefined
161 #endif
163 #ifndef log10
164 #error log10 undefined
165 #endif
167 #ifndef log1p
168 #error log1p undefined
169 #endif
171 #ifndef log2
172 #error log2 undefined
173 #endif
175 #ifndef logb
176 #error logb undefined
177 #endif
179 #ifndef lrint
180 #error lrint undefined
181 #endif
183 #ifndef lround
184 #error lround undefined
185 #endif
187 #ifndef nearbyint
188 #error nearbyint undefined
189 #endif
191 #ifndef nextafter
192 #error nextafter undefined
193 #endif
195 #ifndef nexttoward
196 #error nexttoward undefined
197 #endif
199 #ifndef remainder
200 #error remainder undefined
201 #endif
203 #ifndef remquo
204 #error remquo undefined
205 #endif
207 #ifndef rint
208 #error rint undefined
209 #endif
211 #ifndef round
212 #error round undefined
213 #endif
215 #ifndef scalbn
216 #error scalbn undefined
217 #endif
219 #ifndef scalbln
220 #error scalbln undefined
221 #endif
223 #ifndef tgamma
224 #error tgamma undefined
225 #endif
227 #ifndef trunc
228 #error trunc undefined
229 #endif
231 #ifndef carg
232 #error carg undefined
233 #endif
235 #ifndef cimag
236 #error cimag undefined
237 #endif
239 #ifndef conj
240 #error conj undefined
241 #endif
243 #ifndef cproj
244 #error cproj undefined
245 #endif
247 #ifndef creal
248 #error creal undefined
249 #endif