blob: 0206cae186c488552508de6447e760c1fbac623d [file] [log] [blame]
// { dg-do run }
#include <iostream>
#include <sstream>
int main()
{
std::basic_ostringstream<char> ostr;
std::ostreambuf_iterator<char> iter(ostr.rdbuf());
*iter++ = 'X';
std::cout << ostr.str() << '\n';
return 0;
}