summaryrefslogtreecommitdiff
path: root/tests/test-math-c++.cc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2012-04-03 18:59:33 +0200
committerBruno Haible <bruno@clisp.org>2012-04-03 21:14:09 +0200
commit1ab17d9f64900d991443e712f636c9ef6ad543b2 (patch)
treee1a8a3720fbea6455aaf2a40fb01ba0610db69cc /tests/test-math-c++.cc
parent9e7a6e9093ca226915933ed14029ba7efea0efca (diff)
downloadgnulib-1ab17d9f64900d991443e712f636c9ef6ad543b2.tar.gz
New module 'ilogb'.
* lib/math.in.h (ilogb): New declaration. * lib/ilogb.c: New file. * m4/ilogb.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB, REPLACE_ILOGB. * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB, REPLACE_ILOGB. * modules/ilogb: New file. * tests/test-math-c++.cc: Check the declaration of ilogb. * doc/posix-functions/ilogb.texi: Mention the new module.
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 2c616b36f5..7d1cc23f48 100644
--- a/tests/test-math-c++.cc
+++ b/tests/test-math-c++.cc
@@ -194,6 +194,10 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::hypotl, long double,
(long double, long double));
#endif
+#if GNULIB_TEST_ILOGB
+SIGNATURE_CHECK (GNULIB_NAMESPACE::ilogb, int, (double));
+#endif
+
//SIGNATURE_CHECK (GNULIB_NAMESPACE::j0, double, (double));
//SIGNATURE_CHECK (GNULIB_NAMESPACE::j1, double, (double));