From: Jason Merrill Date: Sun, 10 Dec 2000 11:23:50 +0000 (-0500) Subject: auto_ptr.cc (test07): Remove test that tries to copy-initialize an auto_ptr from an... * testsuite/20_util/auto_ptr.cc (test07): Remove test that tries to copy-initialize an auto_ptr from an auto_ptr; it isn't supposed to work anymore. From-SVN: r38171 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 24427f60fed..ffab0431575 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2000-12-09 Jason Merrill + + * testsuite/20_util/auto_ptr.cc (test07): Remove test that tries + to copy-initialize an auto_ptr from an auto_ptr; it + isn't supposed to work anymore. + 2000-12-09 Phil Edwards Move the HTML-containing subdirs from 'docs' to 'docs/html'. diff --git a/libstdc++-v3/testsuite/20_util/auto_ptr.cc b/libstdc++-v3/testsuite/20_util/auto_ptr.cc index a6aa338df1e..95d8fd0ee1c 100644 --- a/libstdc++-v3/testsuite/20_util/auto_ptr.cc +++ b/libstdc++-v3/testsuite/20_util/auto_ptr.cc @@ -261,12 +261,13 @@ test07() reset_count_struct reset; drain(source()); - drain(source()); + // The resolution of core issue 84, now a DR, breaks this call. + // drain(source()); drain(source()); - VERIFY( A::ctor_count == 3 ); - VERIFY( A::dtor_count == 3 ); - VERIFY( B::ctor_count == 2 ); - VERIFY( B::dtor_count == 2 ); + VERIFY( A::ctor_count == 2 ); + VERIFY( A::dtor_count == 2 ); + VERIFY( B::ctor_count == 1 ); + VERIFY( B::dtor_count == 1 ); #ifdef DEBUG_ASSERT assert(test); @@ -288,4 +289,3 @@ main() return 0; } -