diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-10 11:23:50 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-10 11:23:50 +0000 |
commit | 5adaaef22b07ac84aa0dd7d8ba245ec798082873 (patch) | |
tree | 4d2275bfb2b5003ebc3596113f7fabcc8d8b29d0 /libstdc++-v3/testsuite | |
parent | b933f4ce5db44bf78f3da2cc6a6a8f675778d97e (diff) | |
download | gcc-5adaaef22b07ac84aa0dd7d8ba245ec798082873.tar.gz |
* testsuite/20_util/auto_ptr.cc (test07): Remove test that tries
to copy-initialize an auto_ptr<Base> from an auto_ptr<Derived>; it
isn't supposed to work anymore.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38171 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r-- | libstdc++-v3/testsuite/20_util/auto_ptr.cc | 12 |
1 files changed, 6 insertions, 6 deletions
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<A>()); - drain<A>(source<B>()); + // The resolution of core issue 84, now a DR, breaks this call. + // drain<A>(source<B>()); drain(source<B>()); - 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; } - |