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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eb41.C
blob
37422fbd6ecd4fef818d88eef566c6a551602f65
1
// { dg-do run }
2
// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
3
#include <iostream>
4
#include <iterator>
5
#include <string>
6
7
std::ostream_iterator<std::string> oo(std::cout);
8
9
int main()
10
{
11
*oo = "Hello, ";
12
++oo;
13
*oo = "world!\n";
14
}
15