summaryrefslogtreecommitdiff
path: root/tests/test-string-c++2.cc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-03-13 16:20:41 +0100
committerBruno Haible <bruno@clisp.org>2010-03-13 16:20:41 +0100
commit14051499d596955d8c5e558f78826df4d8945ed1 (patch)
treec7e161b6578b72dd7bf6e4713bd1f8eb18755d34 /tests/test-string-c++2.cc
parent4735b7faf6be8578cd8109efead5b781abd1439d (diff)
downloadgnulib-14051499d596955d8c5e558f78826df4d8945ed1.tar.gz
Test that gnulib does not break the standard C++ headers.
Diffstat (limited to 'tests/test-string-c++2.cc')
-rw-r--r--tests/test-string-c++2.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test-string-c++2.cc b/tests/test-string-c++2.cc
new file mode 100644
index 0000000000..aebb6c61b3
--- /dev/null
+++ b/tests/test-string-c++2.cc
@@ -0,0 +1,20 @@
+/* Test of <string.h> substitute in C++ mode.
+ Copyright (C) 2010 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/>. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <cstring>