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