diff options
Diffstat (limited to 'libstdc++-v3/testsuite/20_util/shared_ptr/assign/auto_ptr_rvalue.cc')
-rw-r--r-- | libstdc++-v3/testsuite/20_util/shared_ptr/assign/auto_ptr_rvalue.cc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/assign/auto_ptr_rvalue.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/assign/auto_ptr_rvalue.cc index edd3ffeeb03..f1f399c5f36 100644 --- a/libstdc++-v3/testsuite/20_util/shared_ptr/assign/auto_ptr_rvalue.cc +++ b/libstdc++-v3/testsuite/20_util/shared_ptr/assign/auto_ptr_rvalue.cc @@ -21,7 +21,6 @@ // 20.7.12.2 Template class shared_ptr [util.smartptr.shared] #include <memory> -#include <testsuite_hooks.h> struct A { }; std::auto_ptr<A> source() { return std::auto_ptr<A>(); } @@ -29,27 +28,19 @@ std::auto_ptr<A> source() { return std::auto_ptr<A>(); } // 20.7.12.2.3 shared_ptr assignment [util.smartptr.shared.assign] // Assignment from rvalue auto_ptr -int +void test01() { - bool test __attribute__((unused)) = true; - std::shared_ptr<A> a; a = source(); - - return 0; } -int +void test02() { - bool test __attribute__((unused)) = true; - std::shared_ptr<A> a; std::auto_ptr<A> au; a = std::move(au); - - return 0; } int |