summaryrefslogtreecommitdiff
path: root/tests/test-math-c++.cc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-12-08 15:01:54 +0100
committerBruno Haible <bruno@clisp.org>2019-12-08 15:01:54 +0100
commit8a54f8f14612639467bdd67d19137e4e46d38b15 (patch)
tree8f275ffe61022a48906d666c63bed5d9ec687961 /tests/test-math-c++.cc
parent45819c74f6994d901b733883e81d968c10647420 (diff)
downloadgnulib-8a54f8f14612639467bdd67d19137e4e46d38b15.tar.gz
math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
* tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning instead of #error.
Diffstat (limited to 'tests/test-math-c++.cc')
-rw-r--r--tests/test-math-c++.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-math-c++.cc b/tests/test-math-c++.cc
index 57bfd1be9c..190fd49feb 100644
--- a/tests/test-math-c++.cc
+++ b/tests/test-math-c++.cc
@@ -383,28 +383,28 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::truncl, long double, (long double));
#if GNULIB_TEST_ISFINITE
# ifdef isfinite
-# error "isfinite should not be a macro in C++"
+# warning "isfinite should not be a macro in C++"
# endif
REAL_FLOATING_CHECK (isfinite, bool, (float), bool, (double), bool, (long double));
#endif
#if GNULIB_TEST_ISINF
# ifdef isinf
-# error "isinf should not be a macro in C++"
+# warning "isinf should not be a macro in C++"
# endif
REAL_FLOATING_CHECK (isinf, bool, (float), bool, (double), bool, (long double));
#endif
#if GNULIB_TEST_ISNAN
# ifdef isnan
-# error "isnan should not be a macro in C++"
+# warning "isnan should not be a macro in C++"
# endif
REAL_FLOATING_CHECK (isnan, bool, (float), bool, (double), bool, (long double));
#endif
#if GNULIB_TEST_SIGNBIT
# ifdef signbit
-# error "signbit should not be a macro in C++"
+# warning "signbit should not be a macro in C++"
# endif
REAL_FLOATING_CHECK (signbit, bool, (float), bool, (double), bool, (long double));
#endif