//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template class auto_ptr; // template operator auto_ptr() throw(); #include #include #include "../AB.h" std::auto_ptr source() { return std::auto_ptr(new B(1)); } void test() { std::auto_ptr ap2(source()); } int main() { test(); }