[libcxx] r326802 - One more test for P0767:
Marshall Clow via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 6 07:01:55 PST 2018
Author: marshall
Date: Tue Mar 6 07:01:55 2018
New Revision: 326802
URL: http://llvm.org/viewvc/llvm-project?rev=326802&view=rev
Log:
One more test for P0767:
Modified:
libcxx/trunk/test/std/depr/depr.c.headers/stddef_h.pass.cpp
Modified: libcxx/trunk/test/std/depr/depr.c.headers/stddef_h.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/depr/depr.c.headers/stddef_h.pass.cpp?rev=326802&r1=326801&r2=326802&view=diff
==============================================================================
--- libcxx/trunk/test/std/depr/depr.c.headers/stddef_h.pass.cpp (original)
+++ libcxx/trunk/test/std/depr/depr.c.headers/stddef_h.pass.cpp Tue Mar 6 07:01:55 2018
@@ -13,6 +13,8 @@
#include <cassert>
#include <type_traits>
+#include "test_macros.h"
+
#ifndef NULL
#error NULL not defined
#endif
@@ -42,8 +44,14 @@ 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");
+#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 >= "
More information about the cfe-commits
mailing list