Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr67600.C
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
;
}