aboutsummaryrefslogtreecommitdiff
path: root/test/std/depr/depr.c.headers/stddef_h.pass.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2018-07-28 11:07:56 +0000
committerDimitry Andric <dim@FreeBSD.org>2018-07-28 11:07:56 +0000
commitf36202620b428c45a1c8d91743727c9313424fb2 (patch)
tree14928d8970ba4890a6370aca4c38fc832d45f21f /test/std/depr/depr.c.headers/stddef_h.pass.cpp
parent0294ba5648d889e48ffee8ddad25944e258940ae (diff)
Vendor import of libc++ trunk r338150:vendor/libc++/libc++-trunk-r338150
Notes
Notes: svn path=/vendor/libc++/dist/; revision=336819 svn path=/vendor/libc++/libc++-trunk-r338150/; revision=336820; tag=vendor/libc++/libc++-trunk-r338150
Diffstat (limited to 'test/std/depr/depr.c.headers/stddef_h.pass.cpp')
-rw-r--r--test/std/depr/depr.c.headers/stddef_h.pass.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/std/depr/depr.c.headers/stddef_h.pass.cpp b/test/std/depr/depr.c.headers/stddef_h.pass.cpp
index 0c08c782a3e4..68f70b80e92e 100644
--- a/test/std/depr/depr.c.headers/stddef_h.pass.cpp
+++ b/test/std/depr/depr.c.headers/stddef_h.pass.cpp
@@ -13,6 +13,8 @@
#include <cassert>
#include <type_traits>
+#include "test_macros.h"
+
#ifndef NULL
#error NULL not defined
#endif
@@ -42,8 +44,16 @@ int main()
"decltype(nullptr) == nullptr_t");
static_assert(sizeof(nullptr_t) == sizeof(void*),
"sizeof(nullptr_t) == sizeof(void*)");
+#if TEST_STD_VER > 17
+// P0767
+ static_assert(std::is_trivial<max_align_t>::value,
+ "std::is_trivial<max_align_t>::value");
+ static_assert(std::is_standard_layout<max_align_t>::value,
+ "std::is_standard_layout<max_align_t>::value");
+#else
static_assert(std::is_pod<max_align_t>::value,
"std::is_pod<max_align_t>::value");
+#endif
static_assert((std::alignment_of<max_align_t>::value >=
std::alignment_of<long long>::value),
"std::alignment_of<max_align_t>::value >= "