1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // template <class X> class auto_ptr;
14 // X& operator*() const throw();
16 // REQUIRES: c++98 || c++03 || c++11 || c++14
28 std::auto_ptr<A> ap(p);
29 assert(ap->id() == 1);
31 assert(ap->id() == 3);
33 assert(A::count == 0);