summaryrefslogtreecommitdiff
path: root/tests/test-math-c++.cc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2012-03-07 03:29:32 +0100
committerBruno Haible <bruno@clisp.org>2012-03-09 02:15:34 +0100
commit98d50dd6077362e1bc9d9bdeb4193051e611e677 (patch)
tree30471c6e325b952eb9e1335076d0dadd89add9a0 /tests/test-math-c++.cc
parenta86ab183d92d794a951cefdf95718b46d5f4441e (diff)
downloadgnulib-98d50dd6077362e1bc9d9bdeb4193051e611e677.tar.gz
New module 'exp2'.
* lib/math.in.h (exp2): New declaration. * lib/exp2.c: New file. * m4/exp2.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2, REPLACE_EXP2. * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2, REPLACE_EXP2. * modules/exp2: New file. * tests/test-math-c++.cc: Check the declaration of exp2. * doc/posix-functions/exp2.texi: Mention the new module and the IRIX and OpenBSD problems.
Diffstat (limited to 'tests/test-math-c++.cc')
-rw-r--r--tests/test-math-c++.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-math-c++.cc b/tests/test-math-c++.cc
index 23b5573e1a..18ec07a910 100644
--- a/tests/test-math-c++.cc
+++ b/tests/test-math-c++.cc
@@ -124,6 +124,10 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::expf, float, (float));
SIGNATURE_CHECK (GNULIB_NAMESPACE::expl, long double, (long double));
#endif
+#if GNULIB_TEST_EXP2
+SIGNATURE_CHECK (GNULIB_NAMESPACE::exp2, double, (double));
+#endif
+
#if GNULIB_TEST_EXPM1F
SIGNATURE_CHECK (GNULIB_NAMESPACE::expm1f, float, (float));
#endif