From 37d478a82a2889c7726206c0e0710a0e12cc4c3e Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 3 Sep 2022 20:42:51 +0200 Subject: [PATCH] stdalign: Add C++ tests. * tests/test-stdalign-c++.cc: New file. * modules/stdalign-c++-tests: New file. * modules/stdalign-tests (Depends-on): Add stdalign-c++-tests. --- ChangeLog | 7 +++++++ modules/stdalign-c++-tests | 17 +++++++++++++++++ modules/stdalign-tests | 1 + tests/test-stdalign-c++.cc | 28 ++++++++++++++++++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 modules/stdalign-c++-tests create mode 100644 tests/test-stdalign-c++.cc diff --git a/ChangeLog b/ChangeLog index 2ac7ffd2e9..0dab05a998 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2022-09-03 Bruno Haible + + stdalign: Add C++ tests. + * tests/test-stdalign-c++.cc: New file. + * modules/stdalign-c++-tests: New file. + * modules/stdalign-tests (Depends-on): Add stdalign-c++-tests. + 2022-09-03 Bruno Haible sched: Add C++ tests. diff --git a/modules/stdalign-c++-tests b/modules/stdalign-c++-tests new file mode 100644 index 0000000000..bc7a1f7f1c --- /dev/null +++ b/modules/stdalign-c++-tests @@ -0,0 +1,17 @@ +Files: +tests/test-stdalign-c++.cc + +Status: +c++-test + +Depends-on: +ansi-c++-opt + +configure.ac: + +Makefile.am: +if ANSICXX +TESTS += test-stdalign-c++ +check_PROGRAMS += test-stdalign-c++ +test_stdalign_c___SOURCES = test-stdalign-c++.cc +endif diff --git a/modules/stdalign-tests b/modules/stdalign-tests index 6d97a3d2a4..138fe3550e 100644 --- a/modules/stdalign-tests +++ b/modules/stdalign-tests @@ -5,6 +5,7 @@ tests/macros.h Depends-on: verify stdint +stdalign-c++-tests configure.ac: diff --git a/tests/test-stdalign-c++.cc b/tests/test-stdalign-c++.cc new file mode 100644 index 0000000000..8d5258e5f9 --- /dev/null +++ b/tests/test-stdalign-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 () +{ +} -- 2.39.5