summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-09-03 20:42:51 +0200
committerBruno Haible <bruno@clisp.org>2022-09-04 01:17:47 +0200
commit37d478a82a2889c7726206c0e0710a0e12cc4c3e (patch)
tree303ccbf8ba8577089f49e4a2d1141fb067b5b21b /tests
parent263beff33db15c12cf425f991e95f13a91350f8d (diff)
downloadgnulib-37d478a82a2889c7726206c0e0710a0e12cc4c3e.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-stdalign-c++.cc28
1 files changed, 28 insertions, 0 deletions
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 <stdalign.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 <stdalign.h>
+
+
+int
+main ()
+{
+}