]> Savannah Git Hosting - gnulib.git/commitdiff
stdckdint: Add C++ tests.
authorBruno Haible <bruno@clisp.org>
Sat, 3 Sep 2022 18:48:58 +0000 (20:48 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 3 Sep 2022 23:17:47 +0000 (01:17 +0200)
* tests/test-stdckdint-c++.cc: New file.
* modules/stdckdint-c++-tests: New file.
* modules/stdckdint-tests (Depends-on): Add stdckdint-c++-tests.

ChangeLog
modules/stdckdint-c++-tests [new file with mode: 0644]
modules/stdckdint-tests
tests/test-stdckdint-c++.cc [new file with mode: 0644]

index 0dab05a998af60c2a544e095f4e9e60f1b482456..30cf81091c4f5ecdf12ef5948e4b898e16038312 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-09-03  Bruno Haible  <bruno@clisp.org>
+
+       stdckdint: Add C++ tests.
+       * tests/test-stdckdint-c++.cc: New file.
+       * modules/stdckdint-c++-tests: New file.
+       * modules/stdckdint-tests (Depends-on): Add stdckdint-c++-tests.
+
 2022-09-03  Bruno Haible  <bruno@clisp.org>
 
        stdalign: Add C++ tests.
diff --git a/modules/stdckdint-c++-tests b/modules/stdckdint-c++-tests
new file mode 100644 (file)
index 0000000..8eb4b48
--- /dev/null
@@ -0,0 +1,17 @@
+Files:
+tests/test-stdckdint-c++.cc
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-stdckdint-c++
+check_PROGRAMS += test-stdckdint-c++
+test_stdckdint_c___SOURCES = test-stdckdint-c++.cc
+endif
index 153a1fbb4210a267640e44c553e4d1321e20dc96..fb809dac3ec964257929d2331c7d9f8df03c7284 100644 (file)
@@ -7,6 +7,7 @@ Depends-on:
 inttypes
 stdbool
 verify
+stdckdint-c++-tests
 
 configure.ac:
 
diff --git a/tests/test-stdckdint-c++.cc b/tests/test-stdckdint-c++.cc
new file mode 100644 (file)
index 0000000..8be05ba
--- /dev/null
@@ -0,0 +1,28 @@
+/* Test of <stdckdint.h> substitute in C++ mode.
+   Copyright (C) 2022 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>, 2022.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <stdckdint.h>
+
+
+int
+main ()
+{
+}