New module 'rintl'.
[gnulib.git] / tests / test-math-c++.cc
1 /* Test of <math.h> substitute in C++ mode.
2    Copyright (C) 2010-2011 Free Software Foundation, Inc.
3
4    This program is free software: you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation; either version 3 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
16
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010.  */
18
19 #define GNULIB_NAMESPACE gnulib
20 #include <config.h>
21
22 #include <math.h>
23
24 #include "signature.h"
25
26
27 #if GNULIB_TEST_ACOSF
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::acosf, float, (float));
29 #endif
30 //SIGNATURE_CHECK (GNULIB_NAMESPACE::acos, double, (double));
31 #if GNULIB_TEST_ASINF
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::asinf, float, (float));
33 #endif
34 //SIGNATURE_CHECK (GNULIB_NAMESPACE::asin, double, (double));
35 #if GNULIB_TEST_ATANF
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::atanf, float, (float));
37 #endif
38 //SIGNATURE_CHECK (GNULIB_NAMESPACE::atan, double, (double));
39 #if GNULIB_TEST_ATAN2F
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::atan2f, float, (float, float));
41 #endif
42 //SIGNATURE_CHECK (GNULIB_NAMESPACE::atan2, double, (double, double));
43 //SIGNATURE_CHECK (GNULIB_NAMESPACE::cbrt, double, (double));
44 #if GNULIB_TEST_COPYSIGNF
45 SIGNATURE_CHECK (GNULIB_NAMESPACE::copysignf, float, (float, float));
46 #endif
47 #if GNULIB_TEST_COPYSIGN
48 SIGNATURE_CHECK (GNULIB_NAMESPACE::copysign, double, (double, double));
49 #endif
50 #if GNULIB_TEST_COSF
51 SIGNATURE_CHECK (GNULIB_NAMESPACE::cosf, float, (float));
52 #endif
53 //SIGNATURE_CHECK (GNULIB_NAMESPACE::cos, double, (double));
54 #if GNULIB_TEST_COSHF
55 SIGNATURE_CHECK (GNULIB_NAMESPACE::coshf, float, (float));
56 #endif
57 //SIGNATURE_CHECK (GNULIB_NAMESPACE::cosh, double, (double));
58 //SIGNATURE_CHECK (GNULIB_NAMESPACE::erf, double, (double));
59 //SIGNATURE_CHECK (GNULIB_NAMESPACE::erfc, double, (double));
60 #if GNULIB_TEST_EXPF
61 SIGNATURE_CHECK (GNULIB_NAMESPACE::expf, float, (float));
62 #endif
63 //SIGNATURE_CHECK (GNULIB_NAMESPACE::exp, double, (double));
64 #if GNULIB_TEST_FABSF
65 SIGNATURE_CHECK (GNULIB_NAMESPACE::fabsf, float, (float));
66 #endif
67 //SIGNATURE_CHECK (GNULIB_NAMESPACE::fabs, double, (double));
68 #if GNULIB_TEST_FMODF
69 SIGNATURE_CHECK (GNULIB_NAMESPACE::fmodf, float, (float, float));
70 #endif
71 //SIGNATURE_CHECK (GNULIB_NAMESPACE::fmod, double, (double, double));
72 #if GNULIB_TEST_FREXPF
73 SIGNATURE_CHECK (GNULIB_NAMESPACE::frexpf, float, (float, int *));
74 #endif
75 #if GNULIB_TEST_FREXP
76 SIGNATURE_CHECK (GNULIB_NAMESPACE::frexp, double, (double, int *));
77 #endif
78 //SIGNATURE_CHECK (GNULIB_NAMESPACE::hypot, double, (double, double));
79 //SIGNATURE_CHECK (GNULIB_NAMESPACE::j0, double, (double));
80 //SIGNATURE_CHECK (GNULIB_NAMESPACE::j1, double, (double));
81 //SIGNATURE_CHECK (GNULIB_NAMESPACE::jn, double, (int, double));
82 #if GNULIB_TEST_LDEXPF
83 SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexpf, float, (float, int));
84 #endif
85 //SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexp, double, (double, int));
86 //SIGNATURE_CHECK (GNULIB_NAMESPACE::lgamma, double, (double));
87 //SIGNATURE_CHECK (GNULIB_NAMESPACE::log10, double, (double));
88 //SIGNATURE_CHECK (GNULIB_NAMESPACE::log1p, double, (double));
89 //SIGNATURE_CHECK (GNULIB_NAMESPACE::logb, double, (double));
90 #if GNULIB_TEST_LOGF
91 SIGNATURE_CHECK (GNULIB_NAMESPACE::logf, float, (float));
92 #endif
93 //SIGNATURE_CHECK (GNULIB_NAMESPACE::log, double, (double));
94 #if GNULIB_TEST_LOG10F
95 SIGNATURE_CHECK (GNULIB_NAMESPACE::log10f, float, (float));
96 #endif
97 #if GNULIB_TEST_MODFF
98 SIGNATURE_CHECK (GNULIB_NAMESPACE::modff, float, (float, float *));
99 #endif
100 //SIGNATURE_CHECK (GNULIB_NAMESPACE::modf, double, (double, double *));
101 //SIGNATURE_CHECK (GNULIB_NAMESPACE::nextafter, double, (double, double));
102 #if GNULIB_TEST_POWF
103 SIGNATURE_CHECK (GNULIB_NAMESPACE::powf, float, (float, float));
104 #endif
105 //SIGNATURE_CHECK (GNULIB_NAMESPACE::pow, double, (double, double));
106 //SIGNATURE_CHECK (GNULIB_NAMESPACE::remainder, double, (double, double));
107 #if GNULIB_TEST_RINTF
108 SIGNATURE_CHECK (GNULIB_NAMESPACE::rintf, float, (float));
109 #endif
110 #if GNULIB_TEST_RINT
111 SIGNATURE_CHECK (GNULIB_NAMESPACE::rint, double, (double));
112 #endif
113 #if GNULIB_TEST_SINF
114 SIGNATURE_CHECK (GNULIB_NAMESPACE::sinf, float, (float));
115 #endif
116 //SIGNATURE_CHECK (GNULIB_NAMESPACE::sin, double, (double));
117 #if GNULIB_TEST_SINHF
118 SIGNATURE_CHECK (GNULIB_NAMESPACE::sinhf, float, (float));
119 #endif
120 //SIGNATURE_CHECK (GNULIB_NAMESPACE::sinh, double, (double));
121 #if GNULIB_TEST_SQRTF
122 SIGNATURE_CHECK (GNULIB_NAMESPACE::sqrtf, float, (float));
123 #endif
124 //SIGNATURE_CHECK (GNULIB_NAMESPACE::sqrt, double, (double));
125 #if GNULIB_TEST_TANF
126 SIGNATURE_CHECK (GNULIB_NAMESPACE::tanf, float, (float));
127 #endif
128 //SIGNATURE_CHECK (GNULIB_NAMESPACE::tan, double, (double));
129 #if GNULIB_TEST_TANHF
130 SIGNATURE_CHECK (GNULIB_NAMESPACE::tanhf, float, (float));
131 #endif
132 //SIGNATURE_CHECK (GNULIB_NAMESPACE::tanh, double, (double));
133 //SIGNATURE_CHECK (GNULIB_NAMESPACE::y0, double, (double));
134 //SIGNATURE_CHECK (GNULIB_NAMESPACE::y1, double, (double));
135 //SIGNATURE_CHECK (GNULIB_NAMESPACE::yn, double, (int, double));
136
137 #if GNULIB_TEST_ACOSL
138 SIGNATURE_CHECK (GNULIB_NAMESPACE::acosl, long double, (long double));
139 #endif
140
141 #if GNULIB_TEST_ASINL
142 SIGNATURE_CHECK (GNULIB_NAMESPACE::asinl, long double, (long double));
143 #endif
144
145 #if GNULIB_TEST_ATANL
146 SIGNATURE_CHECK (GNULIB_NAMESPACE::atanl, long double, (long double));
147 #endif
148
149 #if GNULIB_TEST_CEILF
150 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceilf, float, (float));
151 #endif
152
153 #if GNULIB_TEST_CEIL
154 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceil, double, (double));
155 #endif
156
157 #if GNULIB_TEST_CEILL
158 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceill, long double, (long double));
159 #endif
160
161 #if GNULIB_TEST_COPYSIGNL
162 SIGNATURE_CHECK (GNULIB_NAMESPACE::copysignl, long double,
163                  (long double, long double));
164 #endif
165
166 #if GNULIB_TEST_COSL
167 SIGNATURE_CHECK (GNULIB_NAMESPACE::cosl, long double, (long double));
168 #endif
169
170 #if GNULIB_TEST_EXPL
171 SIGNATURE_CHECK (GNULIB_NAMESPACE::expl, long double, (long double));
172 #endif
173
174 #if GNULIB_TEST_FLOORF
175 SIGNATURE_CHECK (GNULIB_NAMESPACE::floorf, float, (float));
176 #endif
177
178 #if GNULIB_TEST_FLOOR
179 SIGNATURE_CHECK (GNULIB_NAMESPACE::floor, double, (double));
180 #endif
181
182 #if GNULIB_TEST_FLOORL
183 SIGNATURE_CHECK (GNULIB_NAMESPACE::floorl, long double, (long double));
184 #endif
185
186 #if GNULIB_TEST_FREXPL
187 SIGNATURE_CHECK (GNULIB_NAMESPACE::frexpl, long double, (long double, int *));
188 #endif
189
190 #if GNULIB_TEST_LDEXPL
191 SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexpl, long double, (long double, int));
192 #endif
193
194 #if GNULIB_TEST_LOGL
195 SIGNATURE_CHECK (GNULIB_NAMESPACE::logl, long double, (long double));
196 #endif
197
198 #if GNULIB_TEST_RINTL
199 SIGNATURE_CHECK (GNULIB_NAMESPACE::rintl, long double, (long double));
200 #endif
201
202 #if GNULIB_TEST_ROUNDF
203 SIGNATURE_CHECK (GNULIB_NAMESPACE::roundf, float, (float));
204 #endif
205
206 #if GNULIB_TEST_ROUND
207 SIGNATURE_CHECK (GNULIB_NAMESPACE::round, double, (double));
208 #endif
209
210 #if GNULIB_TEST_ROUNDL
211 SIGNATURE_CHECK (GNULIB_NAMESPACE::roundl, long double, (long double));
212 #endif
213
214 #if GNULIB_TEST_SINL
215 SIGNATURE_CHECK (GNULIB_NAMESPACE::sinl, long double, (long double));
216 #endif
217
218 #if GNULIB_TEST_SQRTL
219 SIGNATURE_CHECK (GNULIB_NAMESPACE::sqrtl, long double, (long double));
220 #endif
221
222 #if GNULIB_TEST_TANL
223 SIGNATURE_CHECK (GNULIB_NAMESPACE::tanl, long double, (long double));
224 #endif
225
226 #if GNULIB_TEST_TRUNCF
227 SIGNATURE_CHECK (GNULIB_NAMESPACE::truncf, float, (float));
228 #endif
229
230 #if GNULIB_TEST_TRUNC
231 SIGNATURE_CHECK (GNULIB_NAMESPACE::trunc, double, (double));
232 #endif
233
234 #if GNULIB_TEST_TRUNCL
235 SIGNATURE_CHECK (GNULIB_NAMESPACE::truncl, long double, (long double));
236 #endif
237
238
239 int
240 main ()
241 {
242 }