summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2014-12-08 21:18:03 +0100
committerMarc Glisse <marc.glisse@inria.fr>2014-12-08 21:18:03 +0100
commit3e11eb803dc3ad2987882d0d2328364225399607 (patch)
treec6ed59bb6e37d0ee329bb58b5dbcb05831cdc66f /tests/misc
parentf698e108b1ea73b86c119d0789ff3116df0ba772 (diff)
downloadgmp-3e11eb803dc3ad2987882d0d2328364225399607.tar.gz
Minor testsuite fixes when building as C++.
Diffstat (limited to 'tests/misc')
-rw-r--r--tests/misc/t-locale.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/misc/t-locale.c b/tests/misc/t-locale.c
index 5979e2795..764c7799d 100644
--- a/tests/misc/t-locale.c
+++ b/tests/misc/t-locale.c
@@ -55,6 +55,9 @@ const char *decimal_point;
#if HAVE_LOCALECONV
struct lconv *
localeconv (void)
+#if defined __cplusplus && defined __GLIBC__
+ throw()
+#endif
{
static struct lconv l;
l.decimal_point = (char *) decimal_point;
@@ -66,6 +69,9 @@ localeconv (void)
#if HAVE_NL_LANGINFO
char *
nl_langinfo (nl_item n)
+#if defined __cplusplus && defined __GLIBC__
+ throw()
+#endif
{
#if defined (DECIMAL_POINT)
if (n == DECIMAL_POINT)