blob: e0f8d378d941b231f8b17c4a486bb0e70827d6b0 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
// <strstream>
// class ostrstream
// char* str();
#include <strstream>
#include <cassert>
int main()
{
{
std::ostrstream out;
out << 123 << ' ' << 4.5 << ' ' << "dog";
assert(out.str() == std::string("123 4.5 dog"));
}
}