diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-10-07 21:27:45 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-10-07 21:27:45 +0000 |
commit | b18fd9654f67876d366dc7d5577a5c91287d8353 (patch) | |
tree | 19539be19870ba70f2fe9c75d55ef4aaa9e28f4d /libcxx/test/std/utilities/any/any.class/any.cons/copy.pass.cpp | |
parent | c50b1a263bcb7edd1d6f2e08cb47a6dcc0562eb7 (diff) | |
download | bcm5719-llvm-b18fd9654f67876d366dc7d5577a5c91287d8353.tar.gz bcm5719-llvm-b18fd9654f67876d366dc7d5577a5c91287d8353.zip |
Fix various issues in std::any and the related tests.
* Fix self-swap. Patch from Casey Carter.
* Remove workarounds and tests for types with deleted move constructors. This
was originally added as part of a LWG proposed resolution that has since
changed.
* Re-apply most recent PR for LWG 2769.
* Re-apply most recent PR for LWG 2754. Specifically fix the SFINAE checks to
use the decayed type.
* Fix tests to allow moved-from std::any's to have a non-empty state. This is
the behavior of MSVC's std::any.
* Various whitespace and test fixes.
llvm-svn: 283606
Diffstat (limited to 'libcxx/test/std/utilities/any/any.class/any.cons/copy.pass.cpp')
-rw-r--r-- | libcxx/test/std/utilities/any/any.class/any.cons/copy.pass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/utilities/any/any.class/any.cons/copy.pass.cpp b/libcxx/test/std/utilities/any/any.class/any.cons/copy.pass.cpp index 03870caa531..021c9e45284 100644 --- a/libcxx/test/std/utilities/any/any.class/any.cons/copy.pass.cpp +++ b/libcxx/test/std/utilities/any/any.class/any.cons/copy.pass.cpp @@ -71,7 +71,7 @@ void test_copy() assert(Type::copied == 1); assert(Type::count == 2); assertContains<Type>(a, 42); - assertContains<Type>(a, 42); + assertContains<Type>(a2, 42); // Modify a and check that a2 is unchanged modifyValue<Type>(a, -1); |