2 // { dg-options "-O -Wuninitialized" }
4 template <class _Tp> class AutoPtr
9 explicit AutoPtr(_Tp* __p = 0) : _M_ptr(__p) {}
12 #if __cplusplus <= 201402L
13 throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
24 #if __cplusplus <= 201402L
25 throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
35 #if __cplusplus <= 201402L
36 throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
43 B* f (const A &s) { throw 1; }
48 AutoPtr<B> wt(f(A()));