]> Savannah Git Hosting - gnulib.git/commitdiff
Add more C++ tests.
authorBruno Haible <bruno@clisp.org>
Thu, 5 Dec 2019 08:11:45 +0000 (09:11 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 5 Dec 2019 08:50:49 +0000 (09:50 +0100)
assert-h: Add C++ tests.
* tests/test-assert-h-c++.cc: New file.
* tests/test-assert-h-c++2.cc: New file.
* modules/assert-h-c++-tests: New file.
* modules/assert-h-tests: New file.

ctype: Add C++ tests.
* tests/test-ctype-c++.cc: New file.
* tests/test-ctype-c++2.cc: New file.
* modules/ctype-c++-tests: New file.
* modules/ctype-tests (Depends-on): Add ctype-c++-tests.

errno: Add C++ tests.
* tests/test-errno-c++.cc: New file.
* tests/test-errno-c++2.cc: New file.
* modules/errno-c++-tests: New file.
* modules/errno-tests (Depends-on): Add errno-c++-tests.

float: Add C++ tests.
* tests/test-float-c++.cc: New file.
* tests/test-float-c++2.cc: New file.
* modules/float-c++-tests: New file.
* modules/float-tests (Depends-on): Add float-c++-tests.

inttypes: Add more C++ tests.
* tests/test-inttypes-c++2.cc: New file.
* modules/inttypes-c++-tests (Files): Add it.
(Makefile.am): Compile it.

limits-h: Add C++ tests.
* tests/test-limits-h-c++.cc: New file.
* tests/test-limits-h-c++2.cc: New file.
* modules/limits-h-c++-tests: New file.
* modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.

stdarg: Add C++ tests.
* tests/test-stdarg-c++.cc: New file.
* tests/test-stdarg-c++2.cc: New file.
* modules/stdarg-c++-tests: New file.
* modules/stdarg-tests: New file.

stdbool: Add C++ tests.
* tests/test-stdbool-c++.cc: New file.
* tests/test-stdbool-c++2.cc: New file.
* modules/stdbool-c++-tests: New file.
* modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.

stddef: Add C++ tests.
* tests/test-stddef-c++.cc: New file.
* tests/test-stddef-c++2.cc: New file.
* modules/stddef-c++-tests: New file.
* modules/stddef-tests (Depends-on): Add stddef-c++-tests.

stdint: Add C++ tests.
* tests/test-stdint-c++.cc: New file.
* tests/test-stdint-c++2.cc: New file.
* modules/stdint-c++-tests: New file.
* modules/stdint-tests (Depends-on): Add stdint-c++-tests.

wchar: Add more C++ tests.
* tests/test-wchar-c++2.cc: New file.
* modules/wchar-c++-tests (Files): Add it.
(Makefile.am): Compile it.

wctype-h: Add more C++ tests.
* tests/test-wctype-h-c++2.cc: New file.
* modules/wctype-h-c++-tests (Files): Add it.
(Makefile.am): Compile it.

43 files changed:
ChangeLog
modules/assert-h-c++-tests [new file with mode: 0644]
modules/assert-h-tests [new file with mode: 0644]
modules/ctype-c++-tests [new file with mode: 0644]
modules/ctype-tests
modules/errno-c++-tests [new file with mode: 0644]
modules/errno-tests
modules/float-c++-tests [new file with mode: 0644]
modules/float-tests
modules/inttypes-c++-tests
modules/limits-h-c++-tests [new file with mode: 0644]
modules/limits-h-tests
modules/stdarg-c++-tests [new file with mode: 0644]
modules/stdarg-tests [new file with mode: 0644]
modules/stdbool-c++-tests [new file with mode: 0644]
modules/stdbool-tests
modules/stddef-c++-tests [new file with mode: 0644]
modules/stddef-tests
modules/stdint-c++-tests [new file with mode: 0644]
modules/stdint-tests
modules/wchar-c++-tests
modules/wctype-h-c++-tests
tests/test-assert-h-c++.cc [new file with mode: 0644]
tests/test-assert-h-c++2.cc [new file with mode: 0644]
tests/test-ctype-c++.cc [new file with mode: 0644]
tests/test-ctype-c++2.cc [new file with mode: 0644]
tests/test-errno-c++.cc [new file with mode: 0644]
tests/test-errno-c++2.cc [new file with mode: 0644]
tests/test-float-c++.cc [new file with mode: 0644]
tests/test-float-c++2.cc [new file with mode: 0644]
tests/test-inttypes-c++2.cc [new file with mode: 0644]
tests/test-limits-h-c++.cc [new file with mode: 0644]
tests/test-limits-h-c++2.cc [new file with mode: 0644]
tests/test-stdarg-c++.cc [new file with mode: 0644]
tests/test-stdarg-c++2.cc [new file with mode: 0644]
tests/test-stdbool-c++.cc [new file with mode: 0644]
tests/test-stdbool-c++2.cc [new file with mode: 0644]
tests/test-stddef-c++.cc [new file with mode: 0644]
tests/test-stddef-c++2.cc [new file with mode: 0644]
tests/test-stdint-c++.cc [new file with mode: 0644]
tests/test-stdint-c++2.cc [new file with mode: 0644]
tests/test-wchar-c++2.cc [new file with mode: 0644]
tests/test-wctype-h-c++2.cc [new file with mode: 0644]

index cb3ffc7e83f9c828f800906fc86a4d13501f1d9f..bbc40dd964bd6342a90ee556233ffd1d364a55aa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,76 @@
+2019-12-05  Bruno Haible  <bruno@clisp.org>
+
+       Add more C++ tests.
+
+       assert-h: Add C++ tests.
+       * tests/test-assert-h-c++.cc: New file.
+       * tests/test-assert-h-c++2.cc: New file.
+       * modules/assert-h-c++-tests: New file.
+       * modules/assert-h-tests: New file.
+
+       ctype: Add C++ tests.
+       * tests/test-ctype-c++.cc: New file.
+       * tests/test-ctype-c++2.cc: New file.
+       * modules/ctype-c++-tests: New file.
+       * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
+
+       errno: Add C++ tests.
+       * tests/test-errno-c++.cc: New file.
+       * tests/test-errno-c++2.cc: New file.
+       * modules/errno-c++-tests: New file.
+       * modules/errno-tests (Depends-on): Add errno-c++-tests.
+
+       float: Add C++ tests.
+       * tests/test-float-c++.cc: New file.
+       * tests/test-float-c++2.cc: New file.
+       * modules/float-c++-tests: New file.
+       * modules/float-tests (Depends-on): Add float-c++-tests.
+
+       inttypes: Add more C++ tests.
+       * tests/test-inttypes-c++2.cc: New file.
+       * modules/inttypes-c++-tests (Files): Add it.
+       (Makefile.am): Compile it.
+
+       limits-h: Add C++ tests.
+       * tests/test-limits-h-c++.cc: New file.
+       * tests/test-limits-h-c++2.cc: New file.
+       * modules/limits-h-c++-tests: New file.
+       * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
+
+       stdarg: Add C++ tests.
+       * tests/test-stdarg-c++.cc: New file.
+       * tests/test-stdarg-c++2.cc: New file.
+       * modules/stdarg-c++-tests: New file.
+       * modules/stdarg-tests: New file.
+
+       stdbool: Add C++ tests.
+       * tests/test-stdbool-c++.cc: New file.
+       * tests/test-stdbool-c++2.cc: New file.
+       * modules/stdbool-c++-tests: New file.
+       * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
+
+       stddef: Add C++ tests.
+       * tests/test-stddef-c++.cc: New file.
+       * tests/test-stddef-c++2.cc: New file.
+       * modules/stddef-c++-tests: New file.
+       * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
+
+       stdint: Add C++ tests.
+       * tests/test-stdint-c++.cc: New file.
+       * tests/test-stdint-c++2.cc: New file.
+       * modules/stdint-c++-tests: New file.
+       * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
+
+       wchar: Add more C++ tests.
+       * tests/test-wchar-c++2.cc: New file.
+       * modules/wchar-c++-tests (Files): Add it.
+       (Makefile.am): Compile it.
+
+       wctype-h: Add more C++ tests.
+       * tests/test-wctype-h-c++2.cc: New file.
+       * modules/wctype-h-c++-tests (Files): Add it.
+       (Makefile.am): Compile it.
+
 2019-12-04  Bruno Haible  <bruno@clisp.org>
 
        Fix compilation errors in C++ mode with xlclang++ on AIX.
diff --git a/modules/assert-h-c++-tests b/modules/assert-h-c++-tests
new file mode 100644 (file)
index 0000000..23691d0
--- /dev/null
@@ -0,0 +1,18 @@
+Files:
+tests/test-assert-h-c++.cc
+tests/test-assert-h-c++2.cc
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-assert-h-c++
+check_PROGRAMS += test-assert-h-c++
+test_assert_h_c___SOURCES = test-assert-h-c++.cc test-assert-h-c++2.cc
+endif
diff --git a/modules/assert-h-tests b/modules/assert-h-tests
new file mode 100644 (file)
index 0000000..19375f6
--- /dev/null
@@ -0,0 +1,7 @@
+Files:
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
diff --git a/modules/ctype-c++-tests b/modules/ctype-c++-tests
new file mode 100644 (file)
index 0000000..9ba7659
--- /dev/null
@@ -0,0 +1,19 @@
+Files:
+tests/test-ctype-c++.cc
+tests/test-ctype-c++2.cc
+tests/signature.h
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-ctype-c++
+check_PROGRAMS += test-ctype-c++
+test_ctype_c___SOURCES = test-ctype-c++.cc test-ctype-c++2.cc
+endif
index 4b9f4af870b3488466bc2162e86f9079d245bf7a..cae5067e4f0a5197f0166001dc9bfe2f76da05ba 100644 (file)
@@ -2,6 +2,7 @@ Files:
 tests/test-ctype.c
 
 Depends-on:
+ctype-c++-tests
 
 configure.ac:
 
diff --git a/modules/errno-c++-tests b/modules/errno-c++-tests
new file mode 100644 (file)
index 0000000..f4083bd
--- /dev/null
@@ -0,0 +1,18 @@
+Files:
+tests/test-errno-c++.cc
+tests/test-errno-c++2.cc
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-errno-c++
+check_PROGRAMS += test-errno-c++
+test_errno_c___SOURCES = test-errno-c++.cc test-errno-c++2.cc
+endif
index 00ec12b89299889c243b21e58da4c2f8395ad2b5..71e732ce3ec849d48a144bd112f351550958e2ea 100644 (file)
@@ -2,6 +2,7 @@ Files:
 tests/test-errno.c
 
 Depends-on:
+errno-c++-tests
 
 configure.ac:
 
diff --git a/modules/float-c++-tests b/modules/float-c++-tests
new file mode 100644 (file)
index 0000000..7fdc7f5
--- /dev/null
@@ -0,0 +1,18 @@
+Files:
+tests/test-float-c++.cc
+tests/test-float-c++2.cc
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-float-c++
+check_PROGRAMS += test-float-c++
+test_float_c___SOURCES = test-float-c++.cc test-float-c++2.cc
+endif
index 7d61f8e7fd3e710b2f586aaca528904ce5d97da3..a68e0216dd5ea5e65e5624ee84d9c968ac741db2 100644 (file)
@@ -5,6 +5,7 @@ tests/macros.h
 Depends-on:
 fpieee
 fpucw
+float-c++-tests
 
 configure.ac:
 
index 7f7e91871f02738ff37d2490509d872112fe3ec0..b28189f4196f68000d1a255de748f95d910fd82e 100644 (file)
@@ -1,5 +1,6 @@
 Files:
 tests/test-inttypes-c++.cc
+tests/test-inttypes-c++2.cc
 tests/signature.h
 
 Status:
@@ -14,5 +15,5 @@ Makefile.am:
 if ANSICXX
 TESTS += test-inttypes-c++
 check_PROGRAMS += test-inttypes-c++
-test_inttypes_c___SOURCES = test-inttypes-c++.cc
+test_inttypes_c___SOURCES = test-inttypes-c++.cc test-inttypes-c++2.cc
 endif
diff --git a/modules/limits-h-c++-tests b/modules/limits-h-c++-tests
new file mode 100644 (file)
index 0000000..e976341
--- /dev/null
@@ -0,0 +1,18 @@
+Files:
+tests/test-limits-h-c++.cc
+tests/test-limits-h-c++2.cc
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-limits-h-c++
+check_PROGRAMS += test-limits-h-c++
+test_limits_h_c___SOURCES = test-limits-h-c++.cc test-limits-h-c++2.cc
+endif
index cda0de22254ef585e9a50fa8aa1ea1ad48a78803..7a70e5782b5043ae3b632f89dcc2aeecf91e2f4a 100644 (file)
@@ -4,6 +4,7 @@ tests/test-limits-h.c
 Depends-on:
 extensions
 verify
+limits-h-c++-tests
 
 configure.ac:
 
diff --git a/modules/stdarg-c++-tests b/modules/stdarg-c++-tests
new file mode 100644 (file)
index 0000000..6177388
--- /dev/null
@@ -0,0 +1,18 @@
+Files:
+tests/test-stdarg-c++.cc
+tests/test-stdarg-c++2.cc
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-stdarg-c++
+check_PROGRAMS += test-stdarg-c++
+test_stdarg_c___SOURCES = test-stdarg-c++.cc test-stdarg-c++2.cc
+endif
diff --git a/modules/stdarg-tests b/modules/stdarg-tests
new file mode 100644 (file)
index 0000000..19375f6
--- /dev/null
@@ -0,0 +1,7 @@
+Files:
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
diff --git a/modules/stdbool-c++-tests b/modules/stdbool-c++-tests
new file mode 100644 (file)
index 0000000..4d44e8e
--- /dev/null
@@ -0,0 +1,18 @@
+Files:
+tests/test-stdbool-c++.cc
+tests/test-stdbool-c++2.cc
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-stdbool-c++
+check_PROGRAMS += test-stdbool-c++
+test_stdbool_c___SOURCES = test-stdbool-c++.cc test-stdbool-c++2.cc
+endif
index 6905dfbedc6776ff2df64250fe0d73ca7515d118..0f875fbeedd8753d64bdb460cbc9ff296149ad9b 100644 (file)
@@ -2,6 +2,7 @@ Files:
 tests/test-stdbool.c
 
 Depends-on:
+stdbool-c++-tests
 
 configure.ac:
 
diff --git a/modules/stddef-c++-tests b/modules/stddef-c++-tests
new file mode 100644 (file)
index 0000000..c11a16f
--- /dev/null
@@ -0,0 +1,18 @@
+Files:
+tests/test-stddef-c++.cc
+tests/test-stddef-c++2.cc
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-stddef-c++
+check_PROGRAMS += test-stddef-c++
+test_stddef_c___SOURCES = test-stddef-c++.cc test-stddef-c++2.cc
+endif
index cef92fa6aa3934a3a22ea7728ed0270cb1eb4fd9..bb71e110b7ad0e3fb285b475e83c51aed58c56b9 100644 (file)
@@ -4,6 +4,7 @@ tests/test-stddef.c
 Depends-on:
 stdalign
 verify
+stddef-c++-tests
 
 configure.ac:
 
diff --git a/modules/stdint-c++-tests b/modules/stdint-c++-tests
new file mode 100644 (file)
index 0000000..c5ea031
--- /dev/null
@@ -0,0 +1,18 @@
+Files:
+tests/test-stdint-c++.cc
+tests/test-stdint-c++2.cc
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-stdint-c++
+check_PROGRAMS += test-stdint-c++
+test_stdint_c___SOURCES = test-stdint-c++.cc test-stdint-c++2.cc
+endif
index c21bfa186dc456069c319b707bd62fb44af9ae06..44d9cdec6e35a90786129d4cd59b0056ffb6f77a 100644 (file)
@@ -8,6 +8,7 @@ extensions
 verify
 intprops
 wchar
+stdint-c++-tests
 
 configure.ac:
 AC_REQUIRE([gt_TYPE_WCHAR_T])
index cd898e2cbcc57ce8ffc1a1a0dedebcf88f3e52db..75ff6518a942ed1df009f397fe4a6efc1ea41105 100644 (file)
@@ -1,5 +1,6 @@
 Files:
 tests/test-wchar-c++.cc
+tests/test-wchar-c++2.cc
 tests/signature.h
 
 Status:
@@ -14,6 +15,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___SOURCES = test-wchar-c++.cc test-wchar-c++2.cc
 test_wchar_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_EACCESS) $(LIBTHREAD)
 endif
index 2b22df47380e209812685ea17042027320b84567..0f7db9c84a61040f694122fe54fc8ea2bf150202 100644 (file)
@@ -1,5 +1,6 @@
 Files:
 tests/test-wctype-h-c++.cc
+tests/test-wctype-h-c++2.cc
 tests/signature.h
 
 Status:
@@ -14,6 +15,6 @@ Makefile.am:
 if ANSICXX
 TESTS += test-wctype-h-c++
 check_PROGRAMS += test-wctype-h-c++
-test_wctype_h_c___SOURCES = test-wctype-h-c++.cc
+test_wctype_h_c___SOURCES = test-wctype-h-c++.cc test-wctype-h-c++2.cc
 test_wctype_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_EACCESS)
 endif
diff --git a/tests/test-assert-h-c++.cc b/tests/test-assert-h-c++.cc
new file mode 100644 (file)
index 0000000..4e0a0d4
--- /dev/null
@@ -0,0 +1,28 @@
+/* Test of <assert.h> 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 <https://www.gnu.org/licenses/>.  */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2019.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <assert.h>
+
+
+int
+main ()
+{
+}
diff --git a/tests/test-assert-h-c++2.cc b/tests/test-assert-h-c++2.cc
new file mode 100644 (file)
index 0000000..8308933
--- /dev/null
@@ -0,0 +1,20 @@
+/* Test of <assert.h> 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 <https://www.gnu.org/licenses/>.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <cassert>
diff --git a/tests/test-ctype-c++.cc b/tests/test-ctype-c++.cc
new file mode 100644 (file)
index 0000000..5d94c4c
--- /dev/null
@@ -0,0 +1,35 @@
+/* Test of <ctype.h> 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 <https://www.gnu.org/licenses/>.  */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2019.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <ctype.h>
+
+#include "signature.h"
+
+
+#if 0
+SIGNATURE_CHECK (GNULIB_NAMESPACE::isblank, int, (int));
+#endif
+
+
+int
+main ()
+{
+}
diff --git a/tests/test-ctype-c++2.cc b/tests/test-ctype-c++2.cc
new file mode 100644 (file)
index 0000000..509261a
--- /dev/null
@@ -0,0 +1,20 @@
+/* Test of <ctype.h> 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 <https://www.gnu.org/licenses/>.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <cctype>
diff --git a/tests/test-errno-c++.cc b/tests/test-errno-c++.cc
new file mode 100644 (file)
index 0000000..0a979f6
--- /dev/null
@@ -0,0 +1,28 @@
+/* Test of <errno.h> 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 <https://www.gnu.org/licenses/>.  */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2019.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <errno.h>
+
+
+int
+main ()
+{
+}
diff --git a/tests/test-errno-c++2.cc b/tests/test-errno-c++2.cc
new file mode 100644 (file)
index 0000000..d67de70
--- /dev/null
@@ -0,0 +1,20 @@
+/* Test of <errno.h> 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 <https://www.gnu.org/licenses/>.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <cerrno>
diff --git a/tests/test-float-c++.cc b/tests/test-float-c++.cc
new file mode 100644 (file)
index 0000000..d199f12
--- /dev/null
@@ -0,0 +1,28 @@
+/* Test of <float.h> 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 <https://www.gnu.org/licenses/>.  */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2019.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <float.h>
+
+
+int
+main ()
+{
+}
diff --git a/tests/test-float-c++2.cc b/tests/test-float-c++2.cc
new file mode 100644 (file)
index 0000000..489dfb1
--- /dev/null
@@ -0,0 +1,20 @@
+/* Test of <float.h> 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 <https://www.gnu.org/licenses/>.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <cfloat>
diff --git a/tests/test-inttypes-c++2.cc b/tests/test-inttypes-c++2.cc
new file mode 100644 (file)
index 0000000..a05e1d0
--- /dev/null
@@ -0,0 +1,24 @@
+/* Test of <inttypes.h> 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 <https://www.gnu.org/licenses/>.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#if __cplusplus >= 201103
+
+# include <cinttypes>
+
+#endif
diff --git a/tests/test-limits-h-c++.cc b/tests/test-limits-h-c++.cc
new file mode 100644 (file)
index 0000000..e550a33
--- /dev/null
@@ -0,0 +1,28 @@
+/* Test of <limits.h> 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 <https://www.gnu.org/licenses/>.  */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2019.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <limits.h>
+
+
+int
+main ()
+{
+}
diff --git a/tests/test-limits-h-c++2.cc b/tests/test-limits-h-c++2.cc
new file mode 100644 (file)
index 0000000..7363af6
--- /dev/null
@@ -0,0 +1,20 @@
+/* Test of <limits.h> 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 <https://www.gnu.org/licenses/>.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <climits>
diff --git a/tests/test-stdarg-c++.cc b/tests/test-stdarg-c++.cc
new file mode 100644 (file)
index 0000000..5f4d2e8
--- /dev/null
@@ -0,0 +1,28 @@
+/* Test of <stdarg.h> 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 <https://www.gnu.org/licenses/>.  */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2019.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <stdarg.h>
+
+
+int
+main ()
+{
+}
diff --git a/tests/test-stdarg-c++2.cc b/tests/test-stdarg-c++2.cc
new file mode 100644 (file)
index 0000000..e4661a1
--- /dev/null
@@ -0,0 +1,20 @@
+/* Test of <stdarg.h> 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 <https://www.gnu.org/licenses/>.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <cstdarg>
diff --git a/tests/test-stdbool-c++.cc b/tests/test-stdbool-c++.cc
new file mode 100644 (file)
index 0000000..527d44e
--- /dev/null
@@ -0,0 +1,28 @@
+/* Test of <stdbool.h> 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 <https://www.gnu.org/licenses/>.  */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2019.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <stdbool.h>
+
+
+int
+main ()
+{
+}
diff --git a/tests/test-stdbool-c++2.cc b/tests/test-stdbool-c++2.cc
new file mode 100644 (file)
index 0000000..9db9c2f
--- /dev/null
@@ -0,0 +1,24 @@
+/* Test of <stdbool.h> 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 <https://www.gnu.org/licenses/>.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#if __cplusplus >= 201103
+
+# include <cstdbool>
+
+#endif
diff --git a/tests/test-stddef-c++.cc b/tests/test-stddef-c++.cc
new file mode 100644 (file)
index 0000000..5efc1c2
--- /dev/null
@@ -0,0 +1,28 @@
+/* Test of <stddef.h> 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 <https://www.gnu.org/licenses/>.  */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2019.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <stddef.h>
+
+
+int
+main ()
+{
+}
diff --git a/tests/test-stddef-c++2.cc b/tests/test-stddef-c++2.cc
new file mode 100644 (file)
index 0000000..81fed7e
--- /dev/null
@@ -0,0 +1,20 @@
+/* Test of <stddef.h> 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 <https://www.gnu.org/licenses/>.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <cstddef>
diff --git a/tests/test-stdint-c++.cc b/tests/test-stdint-c++.cc
new file mode 100644 (file)
index 0000000..850d54e
--- /dev/null
@@ -0,0 +1,28 @@
+/* Test of <stdint.h> 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 <https://www.gnu.org/licenses/>.  */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2019.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <stdint.h>
+
+
+int
+main ()
+{
+}
diff --git a/tests/test-stdint-c++2.cc b/tests/test-stdint-c++2.cc
new file mode 100644 (file)
index 0000000..149c607
--- /dev/null
@@ -0,0 +1,24 @@
+/* Test of <stdint.h> 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 <https://www.gnu.org/licenses/>.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#if __cplusplus >= 201103
+
+# include <cstdint>
+
+#endif
diff --git a/tests/test-wchar-c++2.cc b/tests/test-wchar-c++2.cc
new file mode 100644 (file)
index 0000000..3f49ca7
--- /dev/null
@@ -0,0 +1,20 @@
+/* Test of <wchar.h> 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 <https://www.gnu.org/licenses/>.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <cwchar>
diff --git a/tests/test-wctype-h-c++2.cc b/tests/test-wctype-h-c++2.cc
new file mode 100644 (file)
index 0000000..0f9382e
--- /dev/null
@@ -0,0 +1,20 @@
+/* Test of <wctype.h> 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 <https://www.gnu.org/licenses/>.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <cwctype>