>From d81cfbdda4dcadcfe61daeafe92c34871a669098 Mon Sep 17 00:00:00 2001
From: Bruno Haible
Date: Thu, 5 Dec 2019 09:18:13 +0100
Subject: [PATCH 2/3] wchar: Add more C++ tests.
Reported by Christian Biesinger in
.
* tests/test-wchar-c++3.cc: New file.
* modules/wchar-c++-tests (Files): Add it.
(Makefile.am): Compile it.
---
ChangeLog | 9 +++++++++
modules/wchar-c++-tests | 3 ++-
tests/test-wchar-c++3.cc | 22 ++++++++++++++++++++++
3 files changed, 33 insertions(+), 1 deletion(-)
create mode 100644 tests/test-wchar-c++3.cc
diff --git a/ChangeLog b/ChangeLog
index bbc40dd..8574070 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2019-12-05 Bruno Haible
+ wchar: Add more C++ tests.
+ Reported by Christian Biesinger in
+ .
+ * tests/test-wchar-c++3.cc: New file.
+ * modules/wchar-c++-tests (Files): Add it.
+ (Makefile.am): Compile it.
+
+2019-12-05 Bruno Haible
+
Add more C++ tests.
assert-h: Add C++ tests.
diff --git a/modules/wchar-c++-tests b/modules/wchar-c++-tests
index 75ff651..a91e43a 100644
--- a/modules/wchar-c++-tests
+++ b/modules/wchar-c++-tests
@@ -1,6 +1,7 @@
Files:
tests/test-wchar-c++.cc
tests/test-wchar-c++2.cc
+tests/test-wchar-c++3.cc
tests/signature.h
Status:
@@ -15,6 +16,6 @@ Makefile.am:
if ANSICXX
TESTS += test-wchar-c++
check_PROGRAMS += test-wchar-c++
-test_wchar_c___SOURCES = test-wchar-c++.cc test-wchar-c++2.cc
+test_wchar_c___SOURCES = test-wchar-c++.cc test-wchar-c++2.cc test-wchar-c++3.cc
test_wchar_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_EACCESS) $(LIBTHREAD)
endif
diff --git a/tests/test-wchar-c++3.cc b/tests/test-wchar-c++3.cc
new file mode 100644
index 0000000..622dec0
--- /dev/null
+++ b/tests/test-wchar-c++3.cc
@@ -0,0 +1,22 @@
+/* Test of substitute in C++ mode.
+ Copyright (C) 2019 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 . */
+
+#define GNULIB_NAMESPACE gnulib
+#include
+
+#include
+#include
+#include
--
2.7.4