//===----------------------------------------------------------------------===// // // ΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚThe LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. 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(); }