diff options
| author | Eric Fiselier <eric@efcs.ca> | 2016-10-01 10:46:01 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2016-10-01 10:46:01 +0000 |
| commit | 2c8c71f13e2419e258b12f793213208926c89723 (patch) | |
| tree | 1ea5b3a91908eb1ec8579635017d40a785c4985d /libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak | |
| parent | 341e47891b0e81e92fb615f1e69e6a79027f13ed (diff) | |
| download | bcm5719-llvm-2c8c71f13e2419e258b12f793213208926c89723.tar.gz bcm5719-llvm-2c8c71f13e2419e258b12f793213208926c89723.zip | |
Remove all instances of _LIBCPP_HAS_NO_RVALUE_REFERENCES from test/std/utilities
llvm-svn: 283032
Diffstat (limited to 'libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak')
| -rw-r--r-- | libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/weak_ptr.pass.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/weak_ptr.pass.cpp b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/weak_ptr.pass.cpp index 75bf3df90aa..90f958e2685 100644 --- a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/weak_ptr.pass.cpp +++ b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/weak_ptr.pass.cpp @@ -18,6 +18,8 @@ #include <type_traits> #include <cassert> +#include "test_macros.h" + struct B { static int count; @@ -55,7 +57,7 @@ int C::count = 0; template <class T> std::weak_ptr<T> source (std::shared_ptr<T> p) { return std::weak_ptr<T>(p); } -#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES +#if TEST_STD_VER >= 11 template <class T> void sink (std::weak_ptr<T> &&) {} #endif @@ -100,7 +102,7 @@ int main() assert(B::count == 0); assert(A::count == 0); -#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES +#if TEST_STD_VER >= 11 { std::shared_ptr<A> ps(new A); std::weak_ptr<A> pA = source(ps); |

