summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--modules/strings-c++-tests18
-rw-r--r--tests/test-strings-c++.cc35
3 files changed, 60 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a9d1a10bc..cb7257aa9c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2017-05-05 Bruno Haible <bruno@clisp.org>
+ strings-c++-tests: New module.
+ * tests/test-strings-c++.cc: New file.
+ (ffs): Declare, missing since 2011-07-12.
+ * modules/strings-c++-tests: New file.
+
+2017-05-05 Bruno Haible <bruno@clisp.org>
+
string-c++-tests: Update.
* tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
(ffsll): Declare, missing since 2011-07-15.
diff --git a/modules/strings-c++-tests b/modules/strings-c++-tests
new file mode 100644
index 0000000000..485b701a44
--- /dev/null
+++ b/modules/strings-c++-tests
@@ -0,0 +1,18 @@
+Files:
+tests/test-strings-c++.cc
+tests/signature.h
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-strings-c++
+check_PROGRAMS += test-strings-c++
+test_strings_c___SOURCES = test-strings-c++.cc
+endif
diff --git a/tests/test-strings-c++.cc b/tests/test-strings-c++.cc
new file mode 100644
index 0000000000..ba33eadd00
--- /dev/null
+++ b/tests/test-strings-c++.cc
@@ -0,0 +1,35 @@
+/* Test of <strings.h> substitute in C++ mode.
+ Copyright (C) 2010-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 <http://www.gnu.org/licenses/>. */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2017. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <strings.h>
+
+#include "signature.h"
+
+
+#if GNULIB_TEST_FFS
+SIGNATURE_CHECK (GNULIB_NAMESPACE::ffs, int, (int));
+#endif
+
+
+int
+main ()
+{
+}