New module 'coshf'.
[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 //SIGNATURE_CHECK (GNULIB_NAMESPACE::copysign, double, (double, double));
45 #if GNULIB_TEST_COSF
46 SIGNATURE_CHECK (GNULIB_NAMESPACE::cosf, float, (float));
47 #endif
48 //SIGNATURE_CHECK (GNULIB_NAMESPACE::cos, double, (double));
49 #if GNULIB_TEST_COSHF
50 SIGNATURE_CHECK (GNULIB_NAMESPACE::coshf, float, (float));
51 #endif
52 //SIGNATURE_CHECK (GNULIB_NAMESPACE::cosh, double, (double));
53 //SIGNATURE_CHECK (GNULIB_NAMESPACE::erf, double, (double));
54 //SIGNATURE_CHECK (GNULIB_NAMESPACE::erfc, double, (double));
55 #if GNULIB_TEST_EXPF
56 SIGNATURE_CHECK (GNULIB_NAMESPACE::expf, float, (float));
57 #endif
58 //SIGNATURE_CHECK (GNULIB_NAMESPACE::exp, double, (double));
59 #if GNULIB_TEST_FABSF
60 SIGNATURE_CHECK (GNULIB_NAMESPACE::fabsf, float, (float));
61 #endif
62 //SIGNATURE_CHECK (GNULIB_NAMESPACE::fabs, double, (double));
63 #if GNULIB_TEST_FMODF
64 SIGNATURE_CHECK (GNULIB_NAMESPACE::fmodf, float, (float, float));
65 #endif
66 //SIGNATURE_CHECK (GNULIB_NAMESPACE::fmod, double, (double, double));
67 #if GNULIB_TEST_FREXPF
68 SIGNATURE_CHECK (GNULIB_NAMESPACE::frexpf, float, (float, int *));
69 #endif
70 #if GNULIB_TEST_FREXP
71 SIGNATURE_CHECK (GNULIB_NAMESPACE::frexp, double, (double, int *));
72 #endif
73 //SIGNATURE_CHECK (GNULIB_NAMESPACE::hypot, double, (double, double));
74 //SIGNATURE_CHECK (GNULIB_NAMESPACE::j0, double, (double));
75 //SIGNATURE_CHECK (GNULIB_NAMESPACE::j1, double, (double));
76 //SIGNATURE_CHECK (GNULIB_NAMESPACE::jn, double, (int, double));
77 #if GNULIB_TEST_LDEXPF
78 SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexpf, float, (float, int));
79 #endif
80 //SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexp, double, (double, int));
81 //SIGNATURE_CHECK (GNULIB_NAMESPACE::lgamma, double, (double));
82 //SIGNATURE_CHECK (GNULIB_NAMESPACE::log10, double, (double));
83 //SIGNATURE_CHECK (GNULIB_NAMESPACE::log1p, double, (double));
84 //SIGNATURE_CHECK (GNULIB_NAMESPACE::logb, double, (double));
85 #if GNULIB_TEST_LOGF
86 SIGNATURE_CHECK (GNULIB_NAMESPACE::logf, float, (float));
87 #endif
88 //SIGNATURE_CHECK (GNULIB_NAMESPACE::log, double, (double));
89 #if GNULIB_TEST_LOG10F
90 SIGNATURE_CHECK (GNULIB_NAMESPACE::log10f, float, (float));
91 #endif
92 #if GNULIB_TEST_MODFF
93 SIGNATURE_CHECK (GNULIB_NAMESPACE::modff, float, (float, float *));
94 #endif
95 //SIGNATURE_CHECK (GNULIB_NAMESPACE::modf, double, (double, double *));
96 //SIGNATURE_CHECK (GNULIB_NAMESPACE::nextafter, double, (double, double));
97 #if GNULIB_TEST_POWF
98 SIGNATURE_CHECK (GNULIB_NAMESPACE::powf, float, (float, float));
99 #endif
100 //SIGNATURE_CHECK (GNULIB_NAMESPACE::pow, double, (double, double));
101 //SIGNATURE_CHECK (GNULIB_NAMESPACE::remainder, double, (double, double));
102 //SIGNATURE_CHECK (GNULIB_NAMESPACE::rint, double, (double));
103 #if GNULIB_TEST_SINF
104 SIGNATURE_CHECK (GNULIB_NAMESPACE::sinf, float, (float));
105 #endif
106 //SIGNATURE_CHECK (GNULIB_NAMESPACE::sin, double, (double));
107 #if GNULIB_TEST_SINHF
108 SIGNATURE_CHECK (GNULIB_NAMESPACE::sinhf, float, (float));
109 #endif
110 //SIGNATURE_CHECK (GNULIB_NAMESPACE::sinh, double, (double));
111 #if GNULIB_TEST_SQRTF
112 SIGNATURE_CHECK (GNULIB_NAMESPACE::sqrtf, float, (float));
113 #endif
114 //SIGNATURE_CHECK (GNULIB_NAMESPACE::sqrt, double, (double));
115 #if GNULIB_TEST_TANF
116 SIGNATURE_CHECK (GNULIB_NAMESPACE::tanf, float, (float));
117 #endif
118 //SIGNATURE_CHECK (GNULIB_NAMESPACE::tan, double, (double));
119 //SIGNATURE_CHECK (GNULIB_NAMESPACE::tanh, double, (double));
120 //SIGNATURE_CHECK (GNULIB_NAMESPACE::y0, double, (double));
121 //SIGNATURE_CHECK (GNULIB_NAMESPACE::y1, double, (double));
122 //SIGNATURE_CHECK (GNULIB_NAMESPACE::yn, double, (int, double));
123
124 #if GNULIB_TEST_ACOSL
125 SIGNATURE_CHECK (GNULIB_NAMESPACE::acosl, long double, (long double));
126 #endif
127
128 #if GNULIB_TEST_ASINL
129 SIGNATURE_CHECK (GNULIB_NAMESPACE::asinl, long double, (long double));
130 #endif
131
132 #if GNULIB_TEST_ATANL
133 SIGNATURE_CHECK (GNULIB_NAMESPACE::atanl, long double, (long double));
134 #endif
135
136 #if GNULIB_TEST_CEILF
137 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceilf, float, (float));
138 #endif
139
140 #if GNULIB_TEST_CEIL
141 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceil, double, (double));
142 #endif
143
144 #if GNULIB_TEST_CEILL
145 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceill, long double, (long double));
146 #endif
147
148 #if GNULIB_TEST_COSL
149 SIGNATURE_CHECK (GNULIB_NAMESPACE::cosl, long double, (long double));
150 #endif
151
152 #if GNULIB_TEST_EXPL
153 SIGNATURE_CHECK (GNULIB_NAMESPACE::expl, long double, (long double));
154 #endif
155
156 #if GNULIB_TEST_FLOORF
157 SIGNATURE_CHECK (GNULIB_NAMESPACE::floorf, float, (float));
158 #endif
159
160 #if GNULIB_TEST_FLOOR
161 SIGNATURE_CHECK (GNULIB_NAMESPACE::floor, double, (double));
162 #endif
163
164 #if GNULIB_TEST_FLOORL
165 SIGNATURE_CHECK (GNULIB_NAMESPACE::floorl, long double, (long double));
166 #endif
167
168 #if GNULIB_TEST_FREXPL
169 SIGNATURE_CHECK (GNULIB_NAMESPACE::frexpl, long double, (long double, int *));
170 #endif
171
172 #if GNULIB_TEST_LDEXPL
173 SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexpl, long double, (long double, int));
174 #endif
175
176 #if GNULIB_TEST_LOGL
177 SIGNATURE_CHECK (GNULIB_NAMESPACE::logl, long double, (long double));
178 #endif
179
180 #if GNULIB_TEST_ROUNDF
181 SIGNATURE_CHECK (GNULIB_NAMESPACE::roundf, float, (float));
182 #endif
183
184 #if GNULIB_TEST_ROUND
185 SIGNATURE_CHECK (GNULIB_NAMESPACE::round, double, (double));
186 #endif
187
188 #if GNULIB_TEST_ROUNDL
189 SIGNATURE_CHECK (GNULIB_NAMESPACE::roundl, long double, (long double));
190 #endif
191
192 #if GNULIB_TEST_SINL
193 SIGNATURE_CHECK (GNULIB_NAMESPACE::sinl, long double, (long double));
194 #endif
195
196 #if GNULIB_TEST_SQRTL
197 SIGNATURE_CHECK (GNULIB_NAMESPACE::sqrtl, long double, (long double));
198 #endif
199
200 #if GNULIB_TEST_TANL
201 SIGNATURE_CHECK (GNULIB_NAMESPACE::tanl, long double, (long double));
202 #endif
203
204 #if GNULIB_TEST_TRUNCF
205 SIGNATURE_CHECK (GNULIB_NAMESPACE::truncf, float, (float));
206 #endif
207
208 #if GNULIB_TEST_TRUNC
209 SIGNATURE_CHECK (GNULIB_NAMESPACE::trunc, double, (double));
210 #endif
211
212 #if GNULIB_TEST_TRUNCL
213 SIGNATURE_CHECK (GNULIB_NAMESPACE::truncl, long double, (long double));
214 #endif
215
216
217 int
218 main ()
219 {
220 }