diff options
author | Marc Glisse <marc.glisse@inria.fr> | 2014-12-10 22:25:56 +0100 |
---|---|---|
committer | Marc Glisse <marc.glisse@inria.fr> | 2014-12-10 22:25:56 +0100 |
commit | cc8d093f371064e0cf581fdf5bbf7594d1bef3d2 (patch) | |
tree | 15c078af9ce1b112929b7be223d823412d38e8ee /tests/cxx | |
parent | 41473461084bbf88b6ce5bf5c144cfa9f3a1e933 (diff) | |
download | gmp-cc8d093f371064e0cf581fdf5bbf7594d1bef3d2.tar.gz |
Minor testsuite fixes when building as C++.
Diffstat (limited to 'tests/cxx')
-rw-r--r-- | tests/cxx/clocale.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/cxx/clocale.c b/tests/cxx/clocale.c index 1bd6ed2f1..45d9ab934 100644 --- a/tests/cxx/clocale.c +++ b/tests/cxx/clocale.c @@ -44,6 +44,9 @@ extern char point_string[]; #if HAVE_LOCALECONV struct lconv * localeconv (void) +#if defined __cplusplus && defined __GLIBC__ + throw() +#endif { static struct lconv l; l.decimal_point = point_string; @@ -54,6 +57,9 @@ localeconv (void) #if HAVE_NL_LANGINFO char * nl_langinfo (nl_item n) +#if defined __cplusplus && defined __GLIBC__ + throw() +#endif { return point_string; } |