annotate tests/test-math-c++.cc @ 13982:2c35dd380b9e

New module 'ceil-ieee'. * modules/ceil-ieee: New file. * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to ISO C 99 with IEC 60559. * m4/ceil-ieee.m4: New file. * modules/ceil (Files): Add lib/ceil.c. (Depends-on): Add 'float'. (configure.ac): Invoke gl_MATH_MODULE_INDICATOR. * lib/math.in.h (ceil): New declaration. * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL, REPLACE_CEIL. * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL. * modules/ceil-ieee-tests: New file. * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c. * tests/test-math-c++.cc: Check the signature of 'ceil'. * doc/posix-functions/ceil.texi: Mention the new module.
author Bruno Haible <bruno@clisp.org>
date Tue, 21 Dec 2010 18:05:21 +0100
parents 8a7dbd29e9a5
children 97fc9a21a8fb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Test of <math.h> substitute in C++ mode.
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 Copyright (C) 2010 Free Software Foundation, Inc.
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software: you can redistribute it and/or modify
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 3 of the License, or
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 (at your option) any later version.
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010. */
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #define GNULIB_NAMESPACE gnulib
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 #include <config.h>
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 #include <math.h>
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 #include "signature.h"
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 //SIGNATURE_CHECK (GNULIB_NAMESPACE::acos, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 //SIGNATURE_CHECK (GNULIB_NAMESPACE::asin, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 //SIGNATURE_CHECK (GNULIB_NAMESPACE::atan, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 //SIGNATURE_CHECK (GNULIB_NAMESPACE::atan2, double, (double, double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 //SIGNATURE_CHECK (GNULIB_NAMESPACE::cbrt, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 //SIGNATURE_CHECK (GNULIB_NAMESPACE::copysign, double, (double, double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 //SIGNATURE_CHECK (GNULIB_NAMESPACE::cos, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 //SIGNATURE_CHECK (GNULIB_NAMESPACE::cosh, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 //SIGNATURE_CHECK (GNULIB_NAMESPACE::erf, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 //SIGNATURE_CHECK (GNULIB_NAMESPACE::erfc, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 //SIGNATURE_CHECK (GNULIB_NAMESPACE::exp, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38 //SIGNATURE_CHECK (GNULIB_NAMESPACE::fabs, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 //SIGNATURE_CHECK (GNULIB_NAMESPACE::fmod, double, (double, double));
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
40 #if GNULIB_TEST_FREXP
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41 SIGNATURE_CHECK (GNULIB_NAMESPACE::frexp, double, (double, int *));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
42 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
43 //SIGNATURE_CHECK (GNULIB_NAMESPACE::hypot, double, (double, double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
44 //SIGNATURE_CHECK (GNULIB_NAMESPACE::j0, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
45 //SIGNATURE_CHECK (GNULIB_NAMESPACE::j1, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
46 //SIGNATURE_CHECK (GNULIB_NAMESPACE::jn, double, (int, double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
47 //SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexp, double, (double, int));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
48 //SIGNATURE_CHECK (GNULIB_NAMESPACE::lgamma, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
49 //SIGNATURE_CHECK (GNULIB_NAMESPACE::log10, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
50 //SIGNATURE_CHECK (GNULIB_NAMESPACE::log1p, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
51 //SIGNATURE_CHECK (GNULIB_NAMESPACE::logb, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
52 //SIGNATURE_CHECK (GNULIB_NAMESPACE::log, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
53 //SIGNATURE_CHECK (GNULIB_NAMESPACE::modf, double, (double, double *));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
54 //SIGNATURE_CHECK (GNULIB_NAMESPACE::nextafter, double, (double, double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
55 //SIGNATURE_CHECK (GNULIB_NAMESPACE::pow, double, (double, double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
56 //SIGNATURE_CHECK (GNULIB_NAMESPACE::remainder, double, (double, double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
57 //SIGNATURE_CHECK (GNULIB_NAMESPACE::rint, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
58 //SIGNATURE_CHECK (GNULIB_NAMESPACE::sin, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
59 //SIGNATURE_CHECK (GNULIB_NAMESPACE::sinh, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
60 //SIGNATURE_CHECK (GNULIB_NAMESPACE::sqrt, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
61 //SIGNATURE_CHECK (GNULIB_NAMESPACE::tan, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
62 //SIGNATURE_CHECK (GNULIB_NAMESPACE::tanh, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
63 //SIGNATURE_CHECK (GNULIB_NAMESPACE::y0, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
64 //SIGNATURE_CHECK (GNULIB_NAMESPACE::y1, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
65 //SIGNATURE_CHECK (GNULIB_NAMESPACE::yn, double, (int, double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
66
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
67 #if GNULIB_TEST_ACOSL
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
68 SIGNATURE_CHECK (GNULIB_NAMESPACE::acosl, long double, (long double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
69 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
70
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
71 #if GNULIB_TEST_ASINL
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
72 SIGNATURE_CHECK (GNULIB_NAMESPACE::asinl, long double, (long double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
73 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
74
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
75 #if GNULIB_TEST_ATANL
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
76 SIGNATURE_CHECK (GNULIB_NAMESPACE::atanl, long double, (long double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
77 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
78
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
79 #if GNULIB_TEST_CEILF
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
80 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceilf, float, (float));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
81 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
82
13982
2c35dd380b9e New module 'ceil-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13981
diff changeset
83 #if GNULIB_TEST_CEIL
2c35dd380b9e New module 'ceil-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13981
diff changeset
84 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceil, double, (double));
2c35dd380b9e New module 'ceil-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13981
diff changeset
85 #endif
2c35dd380b9e New module 'ceil-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13981
diff changeset
86
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
87 #if GNULIB_TEST_CEILL
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
88 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceill, long double, (long double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
89 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
90
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
91 #if GNULIB_TEST_COSL
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
92 SIGNATURE_CHECK (GNULIB_NAMESPACE::cosl, long double, (long double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
93 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
94
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
95 #if GNULIB_TEST_EXPL
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
96 SIGNATURE_CHECK (GNULIB_NAMESPACE::expl, long double, (long double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
97 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
98
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
99 #if GNULIB_TEST_FLOORF
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
100 SIGNATURE_CHECK (GNULIB_NAMESPACE::floorf, float, (float));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
101 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
102
13981
8a7dbd29e9a5 New module 'floor-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13073
diff changeset
103 #if GNULIB_TEST_FLOOR
8a7dbd29e9a5 New module 'floor-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13073
diff changeset
104 SIGNATURE_CHECK (GNULIB_NAMESPACE::floor, double, (double));
8a7dbd29e9a5 New module 'floor-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13073
diff changeset
105 #endif
8a7dbd29e9a5 New module 'floor-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13073
diff changeset
106
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
107 #if GNULIB_TEST_FLOORL
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
108 SIGNATURE_CHECK (GNULIB_NAMESPACE::floorl, long double, (long double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
109 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
110
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
111 #if GNULIB_TEST_FREXPL
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
112 SIGNATURE_CHECK (GNULIB_NAMESPACE::frexpl, long double, (long double, int *));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
113 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
114
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
115 #if GNULIB_TEST_LDEXPL
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
116 SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexpl, long double, (long double, int));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
117 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
118
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
119 #if GNULIB_TEST_LOGL
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
120 SIGNATURE_CHECK (GNULIB_NAMESPACE::logl, long double, (long double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
121 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
122
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
123 #if GNULIB_TEST_ROUNDF
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
124 SIGNATURE_CHECK (GNULIB_NAMESPACE::roundf, float, (float));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
125 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
126
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
127 #if GNULIB_TEST_ROUND
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
128 SIGNATURE_CHECK (GNULIB_NAMESPACE::round, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
129 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
130
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
131 #if GNULIB_TEST_ROUNDL
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
132 SIGNATURE_CHECK (GNULIB_NAMESPACE::roundl, long double, (long double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
133 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
134
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
135 #if GNULIB_TEST_SINL
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
136 SIGNATURE_CHECK (GNULIB_NAMESPACE::sinl, long double, (long double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
137 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
138
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
139 #if GNULIB_TEST_SQRTL
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
140 SIGNATURE_CHECK (GNULIB_NAMESPACE::sqrtl, long double, (long double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
141 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
142
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
143 #if GNULIB_TEST_TANL
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
144 SIGNATURE_CHECK (GNULIB_NAMESPACE::tanl, long double, (long double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
145 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
146
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
147 #if GNULIB_TEST_TRUNCF
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
148 SIGNATURE_CHECK (GNULIB_NAMESPACE::truncf, float, (float));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
149 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
150
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
151 #if GNULIB_TEST_TRUNC
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
152 SIGNATURE_CHECK (GNULIB_NAMESPACE::trunc, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
153 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
154
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
155 #if GNULIB_TEST_TRUNCL
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
156 SIGNATURE_CHECK (GNULIB_NAMESPACE::truncl, long double, (long double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
157 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
158
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
159
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
160 int
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
161 main ()
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
162 {
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
163 }