summaryrefslogtreecommitdiff
path: root/tests/test-monetary-c++.cc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2017-09-23 09:26:48 +0200
committerBruno Haible <bruno@clisp.org>2017-09-23 17:29:05 +0200
commitb2fc4a431927a6fbdd523bef93357134d9c489a9 (patch)
tree4d10cbbcba9e410a4f6a5df58fa7152c9cc1f9b1 /tests/test-monetary-c++.cc
parent96335dc0af877d7d4e5353c3c7c509b930b1df98 (diff)
downloadgnulib-b2fc4a431927a6fbdd523bef93357134d9c489a9.tar.gz
monetary: New module.
* modules/monetary: New file. * lib/monetary.in.h: New file. * m4/monetary_h.m4: New file. * doc/posix-headers/monetary.texi: Mention the new module. * modules/monetary-tests: New file. * tests/test-monetary.c: New file. * modules/monetary-c++-tests: New file. * tests/test-monetary-c++.cc: New file. * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
Diffstat (limited to 'tests/test-monetary-c++.cc')
-rw-r--r--tests/test-monetary-c++.cc39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/test-monetary-c++.cc b/tests/test-monetary-c++.cc
new file mode 100644
index 0000000000..6b3079a616
--- /dev/null
+++ b/tests/test-monetary-c++.cc
@@ -0,0 +1,39 @@
+/* Test of <monetary.h> substitute in C++ mode.
+ Copyright (C) 2017 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2017. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#if HAVE_MONETARY_H
+# include <monetary.h>
+#endif
+
+#include "signature.h"
+
+
+#if GNULIB_TEST_STRFMON_L
+SIGNATURE_CHECK (GNULIB_NAMESPACE::strfmon_l, ssize_t,
+ (char *s, size_t maxsize, locale_t locale,
+ const char *format, ...));
+#endif
+
+
+int
+main ()
+{
+}