diff options
author | Casey Carter <Casey@Carter.net> | 2017-06-07 00:06:04 +0000 |
---|---|---|
committer | Casey Carter <Casey@Carter.net> | 2017-06-07 00:06:04 +0000 |
commit | 3da9072b088181d11445cd5650d9fccd14189ae7 (patch) | |
tree | 6ad00dcbfcea84661ddfc6130d6d7240f4bba0c9 /test/support | |
parent | 57a009ae03e36eb48943d7ebcdd71fffa5df3210 (diff) |
[test] Test changes to accommodate LWG 2904 "Make variant move-assignment more exception safe"
Also: Move constexpr / triviality extension tests into the std tree and make them conditional on _LIBCPP_VERSION / _MSVC_STL_VERSION.
https://reviews.llvm.org/D32671
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@304847 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/variant_test_helpers.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/support/variant_test_helpers.hpp b/test/support/variant_test_helpers.hpp index 277167233..759815464 100644 --- a/test/support/variant_test_helpers.hpp +++ b/test/support/variant_test_helpers.hpp @@ -69,9 +69,9 @@ template <class Variant> void makeEmpty(Variant& v) { Variant v2(std::in_place_type<MakeEmptyT>); try { - v = v2; + v = std::move(v2); assert(false); - } catch (...) { + } catch (...) { assert(v.valueless_by_exception()); } } |