From: Bruno Haible Date: Sat, 3 Sep 2022 19:13:35 +0000 (+0200) Subject: sysexits: Add C++ tests. X-Git-Tag: v1.0~2084 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=753806a3a15d1a8021e6edc465b965fd5e6a3a81;p=gnulib.git sysexits: Add C++ tests. * tests/test-sysexits-c++.cc: New file. * modules/sysexits-c++-tests: New file. * modules/sysexits-tests (Depends-on): Add sysexits-c++-tests. --- diff --git a/ChangeLog b/ChangeLog index 9bfc6173a1..eb6a269b24 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2022-09-03 Bruno Haible + + sysexits: Add C++ tests. + * tests/test-sysexits-c++.cc: New file. + * modules/sysexits-c++-tests: New file. + * modules/sysexits-tests (Depends-on): Add sysexits-c++-tests. + 2022-09-03 Bruno Haible sys_utsname: Add C++ tests. diff --git a/modules/sysexits-c++-tests b/modules/sysexits-c++-tests new file mode 100644 index 0000000000..e937d82017 --- /dev/null +++ b/modules/sysexits-c++-tests @@ -0,0 +1,17 @@ +Files: +tests/test-sysexits-c++.cc + +Status: +c++-test + +Depends-on: +ansi-c++-opt + +configure.ac: + +Makefile.am: +if ANSICXX +TESTS += test-sysexits-c++ +check_PROGRAMS += test-sysexits-c++ +test_sysexits_c___SOURCES = test-sysexits-c++.cc +endif diff --git a/modules/sysexits-tests b/modules/sysexits-tests index 7794cf05b1..e8de13a1c2 100644 --- a/modules/sysexits-tests +++ b/modules/sysexits-tests @@ -2,6 +2,7 @@ Files: tests/test-sysexits.c Depends-on: +sysexits-c++-tests configure.ac: diff --git a/tests/test-sysexits-c++.cc b/tests/test-sysexits-c++.cc new file mode 100644 index 0000000000..619369d5a0 --- /dev/null +++ b/tests/test-sysexits-c++.cc @@ -0,0 +1,28 @@ +/* Test of 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 . */ + +/* Written by Bruno Haible , 2022. */ + +#define GNULIB_NAMESPACE gnulib +#include + +#include + + +int +main () +{ +}