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