From: Bruno Haible Date: Thu, 5 Dec 2019 08:18:13 +0000 (+0100) Subject: wchar: Add more C++ tests. X-Git-Tag: v1.0~4551 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d81cfbdda4dcadcfe61daeafe92c34871a669098;p=thirdparty%2Fgnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index bbc40dd964..8574070f1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +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. diff --git a/modules/wchar-c++-tests b/modules/wchar-c++-tests index 75ff6518a9..a91e43aec4 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 0000000000..622dec0c2d --- /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