2 // { dg-options "-O -Wuninitialized" }
4 template <class _Tp> class AutoPtr
9 explicit AutoPtr(_Tp* __p = 0) : _M_ptr(__p) {}
11 ~AutoPtr() throw(int) { delete _M_ptr; }
17 ~A() throw(int) { throw 1; }
22 virtual ~B() throw(int);
25 B* f (const A &s) { throw 1; }
30 AutoPtr<B> wt(f(A()));