diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2018-10-15 19:46:03 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2018-10-15 19:46:03 +0000 |
commit | 5c61b9d0cffc130dcb3949e9781823f2e8b5022d (patch) | |
tree | 598d65525a7eeceb02d800f4ebe11627fa117129 /libcxx/test/std/utilities/variant/variant.variant/variant.status/index.pass.cpp | |
parent | 15718a61903f4f61956c85ce3ceed5a43d61b006 (diff) | |
download | bcm5719-llvm-5c61b9d0cffc130dcb3949e9781823f2e8b5022d.tar.gz bcm5719-llvm-5c61b9d0cffc130dcb3949e9781823f2e8b5022d.zip |
Mark a couple of test cases as 'C++17-only' pending the resolution of PR#39232
llvm-svn: 344546
Diffstat (limited to 'libcxx/test/std/utilities/variant/variant.variant/variant.status/index.pass.cpp')
-rw-r--r-- | libcxx/test/std/utilities/variant/variant.variant/variant.status/index.pass.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/utilities/variant/variant.variant/variant.status/index.pass.cpp b/libcxx/test/std/utilities/variant/variant.variant/variant.status/index.pass.cpp index 8025b9e0774..7ab828eb0bf 100644 --- a/libcxx/test/std/utilities/variant/variant.variant/variant.status/index.pass.cpp +++ b/libcxx/test/std/utilities/variant/variant.variant/variant.status/index.pass.cpp @@ -34,11 +34,13 @@ #include "variant_test_helpers.hpp" int main() { - { +#if TEST_STD_VER == 17 + { // This test does not pass on C++20 or later; see https://bugs.llvm.org/show_bug.cgi?id=39232 using V = std::variant<int, ConstexprTestTypes::NoCtors>; constexpr V v; static_assert(v.index() == 0, ""); } +#endif { using V = std::variant<int, long>; constexpr V v(std::in_place_index<1>); |