mirror of git://gcc.gnu.org/git/gcc.git
auto_ptr.cc (test07): Remove test that tries to copy-initialize an auto_ptr<Base> from an...
* 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.
From-SVN: r38171
This commit is contained in:
parent
3d4eaaf3be
commit
913ac9fa8e
|
|
@ -1,3 +1,9 @@
|
||||||
|
2000-12-09 Jason Merrill <jason@redhat.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2000-12-09 Phil Edwards <pme@sources.redhat.com>
|
2000-12-09 Phil Edwards <pme@sources.redhat.com>
|
||||||
|
|
||||||
Move the HTML-containing subdirs from 'docs' to 'docs/html'.
|
Move the HTML-containing subdirs from 'docs' to 'docs/html'.
|
||||||
|
|
|
||||||
|
|
@ -261,12 +261,13 @@ test07()
|
||||||
reset_count_struct reset;
|
reset_count_struct reset;
|
||||||
|
|
||||||
drain(source<A>());
|
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>());
|
drain(source<B>());
|
||||||
VERIFY( A::ctor_count == 3 );
|
VERIFY( A::ctor_count == 2 );
|
||||||
VERIFY( A::dtor_count == 3 );
|
VERIFY( A::dtor_count == 2 );
|
||||||
VERIFY( B::ctor_count == 2 );
|
VERIFY( B::ctor_count == 1 );
|
||||||
VERIFY( B::dtor_count == 2 );
|
VERIFY( B::dtor_count == 1 );
|
||||||
|
|
||||||
#ifdef DEBUG_ASSERT
|
#ifdef DEBUG_ASSERT
|
||||||
assert(test);
|
assert(test);
|
||||||
|
|
@ -288,4 +289,3 @@ main()
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue