diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2018-03-06 15:01:55 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2018-03-06 15:01:55 +0000 |
commit | a9daa969c13f7ffc55db6eb32ca928fb855c3394 (patch) | |
tree | fcf9a8dfbe8c249a6e4caa0cd529b57d5d3ad8e3 /libcxx/test/std/depr/depr.c.headers | |
parent | 042f07eed8c1acba19ea04310137bee12b18045a (diff) | |
download | bcm5719-llvm-a9daa969c13f7ffc55db6eb32ca928fb855c3394.tar.gz bcm5719-llvm-a9daa969c13f7ffc55db6eb32ca928fb855c3394.zip |
One more test for P0767:
llvm-svn: 326802
Diffstat (limited to 'libcxx/test/std/depr/depr.c.headers')
-rw-r--r-- | libcxx/test/std/depr/depr.c.headers/stddef_h.pass.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libcxx/test/std/depr/depr.c.headers/stddef_h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/stddef_h.pass.cpp index 0c08c782a3e..21953465108 100644 --- a/libcxx/test/std/depr/depr.c.headers/stddef_h.pass.cpp +++ b/libcxx/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,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 >= " |