repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr67600.C
blob
0206cae186c488552508de6447e760c1fbac623d
1
// { dg-do run }
2
3
#include <iostream>
4
#include <sstream>
5
6
int main()
7
{
8
std::basic_ostringstream<char> ostr;
9
std::ostreambuf_iterator<char> iter(ostr.rdbuf());
10
*iter++ = 'X';
11
12
13
std::cout << ostr.str() << '\n';
14
return 0;
15
}