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