//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // shared_ptr // template // basic_ostream& // operator<<(basic_ostream& os, shared_ptr const& p); #include #include #include int main() { std::shared_ptr p(new int(3)); std::ostringstream os; assert(os.str().empty()); os << p; assert(!os.str().empty()); }