summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c99-tgmath-1.c
blob: f33b4c5a9ea74787c06db45d37297f15161001e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
/* Test for <tgmath.h> in C99. */
/* Origin: Matt Austern <austern@apple.com>
/* { dg-do preprocess { target c99_runtime } } */
/* { dg-options "-std=iso9899:1999" } */
/* { dg-add-options c99_runtime } */
/* { dg-skip-if "<complex.h> missing" { alpha*-dec-osf5* } } */

/* Test that tgmath defines the macros it's supposed to. */
#include <tgmath.h>

#ifndef acos
#error acos undefined
#endif

#ifndef asin
#error asin undefined
#endif

#ifndef atan
#error atan undefined
#endif

#ifndef acosh
#error acosh undefined
#endif

#ifndef asinh
#error asinh undefined
#endif

#ifndef atanh
#error atanh undefined
#endif

#ifndef cos
#error cos undefined
#endif

#ifndef sin
#error sin undefined
#endif

#ifndef tan
#error tan undefined
#endif

#ifndef cosh
#error cosh undefined
#endif

#ifndef sinh
#error sinh undefined
#endif

#ifndef tanh
#error tanh undefined
#endif

#ifndef exp
#error exp undefined
#endif

#ifndef log
#error log undefined
#endif

#ifndef pow
#error pow undefined
#endif

#ifndef sqrt
#error sqrt undefined
#endif

#ifndef fabs
#error fabs undefined
#endif

#ifndef atan2
#error atan2 undefined
#endif

#ifndef cbrt
#error cbrt undefined
#endif

#ifndef ceil
#error ceil undefined
#endif

#ifndef copysign
#error copysign undefined
#endif

#ifndef erf
#error erf undefined
#endif

#ifndef erfc
#error erfc undefined
#endif

#ifndef exp2
#error exp2 undefined
#endif

#ifndef expm1
#error expm1 undefined
#endif

#ifndef fdim
#error fdim undefined
#endif

#ifndef floor
#error floor undefined
#endif

#ifndef fma
#error fma undefined
#endif

#ifndef fmax
#error fmax undefined
#endif

#ifndef fmin
#error fmin undefined
#endif

#ifndef fmod
#error fmod undefined
#endif

#ifndef frexp
#error frexp undefined
#endif

#ifndef hypot
#error hypot undefined
#endif

#ifndef ilogb
#error ilogb undefined
#endif

#ifndef ldexp
#error ldexp undefined
#endif

#ifndef lgamma
#error lgamma undefined
#endif

#ifndef llrint
#error llrint undefined
#endif

#ifndef llround
#error llround undefined
#endif

#ifndef log10
#error log10 undefined
#endif

#ifndef log1p
#error log1p undefined
#endif

#ifndef log2
#error log2 undefined
#endif

#ifndef logb
#error logb undefined
#endif

#ifndef lrint
#error lrint undefined
#endif

#ifndef lround
#error lround undefined
#endif

#ifndef nearbyint
#error nearbyint undefined
#endif

#ifndef nextafter
#error nextafter undefined
#endif

#ifndef nexttoward
#error nexttoward undefined
#endif

#ifndef remainder
#error remainder undefined
#endif

#ifndef remquo
#error remquo undefined
#endif

#ifndef rint
#error rint undefined
#endif

#ifndef round
#error round undefined
#endif

#ifndef scalbn
#error scalbn undefined
#endif

#ifndef scalbln
#error scalbln undefined
#endif

#ifndef tgamma
#error tgamma undefined
#endif

#ifndef trunc
#error trunc undefined
#endif

#ifndef carg
#error carg undefined
#endif

#ifndef cimag
#error cimag undefined
#endif

#ifndef conj
#error conj undefined
#endif

#ifndef cproj
#error cproj undefined
#endif

#ifndef creal
#error creal undefined
#endif