diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-06 20:13:54 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-06 20:13:54 +0000 |
commit | 4a2db4d30e1653093d4d8b06e8221e2f8b723507 (patch) | |
tree | 941a9d805eb2afbba58f445381819ba0e1dc355f /test/libcxx/utilities/variant/variant.variant/variant.assign/copy.pass.cpp | |
parent | cb08bb04c85c6dcd3d951725505317c31eeff323 (diff) |
Vendor import of libc++ trunk r291274:vendor/libc++/libc++-trunk-r291274
Notes
Notes:
svn path=/vendor/libc++/dist/; revision=311538
svn path=/vendor/libc++/libc++-trunk-r291274/; revision=311539; tag=vendor/libc++/libc++-trunk-r291274
Diffstat (limited to 'test/libcxx/utilities/variant/variant.variant/variant.assign/copy.pass.cpp')
-rw-r--r-- | test/libcxx/utilities/variant/variant.variant/variant.assign/copy.pass.cpp | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/test/libcxx/utilities/variant/variant.variant/variant.assign/copy.pass.cpp b/test/libcxx/utilities/variant/variant.variant/variant.assign/copy.pass.cpp index a94aa2f78299..cb17dfeb071a 100644 --- a/test/libcxx/utilities/variant/variant.variant/variant.assign/copy.pass.cpp +++ b/test/libcxx/utilities/variant/variant.variant/variant.assign/copy.pass.cpp @@ -10,8 +10,9 @@ // UNSUPPORTED: c++98, c++03, c++11, c++14 -// Clang 3.8 doesn't generate constexpr special members correctly. -// XFAIL: clang-3.8, apple-clang-7, apple-clang-8 +// The following compilers don't generate constexpr special members correctly. +// XFAIL: clang-3.5, clang-3.6, clang-3.7, clang-3.8 +// XFAIL: apple-clang-6, apple-clang-7, apple-clang-8 // <variant> @@ -63,7 +64,7 @@ struct TCopyAssignNTMoveAssign { int value; }; -static_assert(std::is_trivially_copy_assignable_v<TCopyAssignNTMoveAssign>); +static_assert(std::is_trivially_copy_assignable_v<TCopyAssignNTMoveAssign>, ""); void test_copy_assignment_sfinae() { { @@ -99,8 +100,8 @@ void test_copy_assignment_same_index() { } } test; constexpr auto result = test(); - static_assert(result.index == 0); - static_assert(result.value == 42); + static_assert(result.index == 0, ""); + static_assert(result.value == 42, ""); } { struct { @@ -113,8 +114,8 @@ void test_copy_assignment_same_index() { } } test; constexpr auto result = test(); - static_assert(result.index == 1); - static_assert(result.value == 42l); + static_assert(result.index == 1, ""); + static_assert(result.value == 42l, ""); } { struct { @@ -127,8 +128,8 @@ void test_copy_assignment_same_index() { } } test; constexpr auto result = test(); - static_assert(result.index == 1); - static_assert(result.value == 42); + static_assert(result.index == 1, ""); + static_assert(result.value == 42, ""); } { struct { @@ -141,8 +142,8 @@ void test_copy_assignment_same_index() { } } test; constexpr auto result = test(); - static_assert(result.index == 1); - static_assert(result.value == 42); + static_assert(result.index == 1, ""); + static_assert(result.value == 42, ""); } } @@ -158,8 +159,8 @@ void test_copy_assignment_different_index() { } } test; constexpr auto result = test(); - static_assert(result.index == 1); - static_assert(result.value == 42l); + static_assert(result.index == 1, ""); + static_assert(result.value == 42l, ""); } { struct { @@ -172,8 +173,8 @@ void test_copy_assignment_different_index() { } } test; constexpr auto result = test(); - static_assert(result.index == 1); - static_assert(result.value == 42); + static_assert(result.index == 1, ""); + static_assert(result.value == 42, ""); } } |