Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.robertl/eb41.C

raw
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