// { dg-do run } // { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } } #include #include #include std::ostream_iterator oo(std::cout); int main() { *oo = "Hello, "; ++oo; *oo = "world!\n"; }