fix regression/pthread_once-deadlock
[libc-test.git] / src / api / tgmath.c
blobb2a876b2347a071d26b68ce8cf1494c45ed95aee
1 #include <tgmath.h>
2 static void f()
4 double x=0, y=0, z=0;
5 int i;
6 #ifdef acos
7 {double r = acos(x);}
8 #else
9 #error no acos(x)
10 #endif
11 #ifdef acosh
12 {double r = acosh(x);}
13 #else
14 #error no acosh(x)
15 #endif
16 #ifdef asin
17 {double r = asin(x);}
18 #else
19 #error no asin(x)
20 #endif
21 #ifdef asinh
22 {double r = asinh(x);}
23 #else
24 #error no asinh(x)
25 #endif
26 #ifdef atan
27 {double r = atan(x);}
28 #else
29 #error no atan(x)
30 #endif
31 #ifdef atan2
32 {double r = atan2(x,y);}
33 #else
34 #error no atan2(x,y)
35 #endif
36 #ifdef atanh
37 {double r = atanh(x);}
38 #else
39 #error no atanh(x)
40 #endif
41 #ifdef carg
42 {double r = carg(x);}
43 #else
44 #error no carg(x)
45 #endif
46 #ifdef cbrt
47 {double r = cbrt(x);}
48 #else
49 #error no cbrt(x)
50 #endif
51 #ifdef ceil
52 {double r = ceil(x);}
53 #else
54 #error no ceil(x)
55 #endif
56 #ifdef cimag
57 {double r = cimag(x);}
58 #else
59 #error no cimag(x)
60 #endif
61 #ifdef conj
62 {double r = conj(x);}
63 #else
64 #error no conj(x)
65 #endif
66 #ifdef copysign
67 {double r = copysign(x,y);}
68 #else
69 #error no copysign(x,y)
70 #endif
71 #ifdef cos
72 {double r = cos(x);}
73 #else
74 #error no cos(x)
75 #endif
76 #ifdef cosh
77 {double r = cosh(x);}
78 #else
79 #error no cosh(x)
80 #endif
81 #ifdef cproj
82 {double r = cproj(x);}
83 #else
84 #error no cproj(x)
85 #endif
86 #ifdef creal
87 {double r = creal(x);}
88 #else
89 #error no creal(x)
90 #endif
91 #ifdef erf
92 {double r = erf(x);}
93 #else
94 #error no erf(x)
95 #endif
96 #ifdef erfc
97 {double r = erfc(x);}
98 #else
99 #error no erfc(x)
100 #endif
101 #ifdef exp
102 {double r = exp(x);}
103 #else
104 #error no exp(x)
105 #endif
106 #ifdef exp2
107 {double r = exp2(x);}
108 #else
109 #error no exp2(x)
110 #endif
111 #ifdef expm1
112 {double r = expm1(x);}
113 #else
114 #error no expm1(x)
115 #endif
116 #ifdef fabs
117 {double r = fabs(x);}
118 #else
119 #error no fabs(x)
120 #endif
121 #ifdef fdim
122 {double r = fdim(x,y);}
123 #else
124 #error no fdim(x,y)
125 #endif
126 #ifdef floor
127 {double r = floor(x);}
128 #else
129 #error no floor(x)
130 #endif
131 #ifdef fma
132 {double r = fma(x,y,z);}
133 #else
134 #error no fma(x,y,z)
135 #endif
136 #ifdef fmax
137 {double r = fmax(x,y);}
138 #else
139 #error no fmax(x,y)
140 #endif
141 #ifdef fmin
142 {double r = fmin(x,y);}
143 #else
144 #error no fmin(x,y)
145 #endif
146 #ifdef fmod
147 {double r = fmod(x,y);}
148 #else
149 #error no fmod(x,y)
150 #endif
151 #ifdef frexp
152 {double r = frexp(x,&i);}
153 #else
154 #error no frexp(x,y)
155 #endif
156 #ifdef hypot
157 {double r = hypot(x,y);}
158 #else
159 #error no hypot(x,y)
160 #endif
161 #ifdef ilogb
162 {double r = ilogb(x);}
163 #else
164 #error no ilogb(x)
165 #endif
166 #ifdef ldexp
167 {double r = ldexp(x,y);}
168 #else
169 #error no ldexp(x,y)
170 #endif
171 #ifdef lgamma
172 {double r = lgamma(x);}
173 #else
174 #error no lgamma(x)
175 #endif
176 #ifdef llrint
177 {double r = llrint(x);}
178 #else
179 #error no llrint(x)
180 #endif
181 #ifdef llround
182 {double r = llround(x);}
183 #else
184 #error no llround(x)
185 #endif
186 #ifdef log
187 {double r = log(x);}
188 #else
189 #error no log(x)
190 #endif
191 #ifdef log10
192 {double r = log10(x);}
193 #else
194 #error no log10(x)
195 #endif
196 #ifdef log1p
197 {double r = log1p(x);}
198 #else
199 #error no log1p(x)
200 #endif
201 #ifdef log2
202 {double r = log2(x);}
203 #else
204 #error no log2(x)
205 #endif
206 #ifdef logb
207 {double r = logb(x);}
208 #else
209 #error no logb(x)
210 #endif
211 #ifdef lrint
212 {double r = lrint(x);}
213 #else
214 #error no lrint(x)
215 #endif
216 #ifdef lround
217 {double r = lround(x);}
218 #else
219 #error no lround(x)
220 #endif
221 #ifdef nearbyint
222 {double r = nearbyint(x);}
223 #else
224 #error no nearbyint(x)
225 #endif
226 #ifdef nextafter
227 {double r = nextafter(x,y);}
228 #else
229 #error no nextafter(x,y)
230 #endif
231 #ifdef nexttoward
232 {double r = nexttoward(x,y);}
233 #else
234 #error no nexttoward(x,y)
235 #endif
236 #ifdef pow
237 {double r = pow(x,y);}
238 #else
239 #error no pow(x,y)
240 #endif
241 #ifdef remainder
242 {double r = remainder(x,y);}
243 #else
244 #error no remainder(x,y)
245 #endif
246 #ifdef remquo
247 {double r = remquo(x,y,&i);}
248 #else
249 #error no remquo(x,y,z)
250 #endif
251 #ifdef rint
252 {double r = rint(x);}
253 #else
254 #error no rint(x)
255 #endif
256 #ifdef round
257 {double r = round(x);}
258 #else
259 #error no round(x)
260 #endif
261 #ifdef scalbln
262 {double r = scalbln(x,y);}
263 #else
264 #error no scalbln(x,y)
265 #endif
266 #ifdef scalbn
267 {double r = scalbn(x,y);}
268 #else
269 #error no scalbn(x,y)
270 #endif
271 #ifdef sin
272 {double r = sin(x);}
273 #else
274 #error no sin(x)
275 #endif
276 #ifdef sinh
277 {double r = sinh(x);}
278 #else
279 #error no sinh(x)
280 #endif
281 #ifdef sqrt
282 {double r = sqrt(x);}
283 #else
284 #error no sqrt(x)
285 #endif
286 #ifdef tan
287 {double r = tan(x);}
288 #else
289 #error no tan(x)
290 #endif
291 #ifdef tanh
292 {double r = tanh(x);}
293 #else
294 #error no tanh(x)
295 #endif
296 #ifdef tgamma
297 {double r = tgamma(x);}
298 #else
299 #error no tgamma(x)
300 #endif
301 #ifdef trunc
302 {double r = trunc(x);}
303 #else
304 #error no trunc(x)
305 #endif