FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb39.C
blob98bee9c6fcf4fab023f927c7d4bb87908b06838a
1 // Build don't link: 
2 #include <cctype>
3 #include <iostream>
4 #include <sstream>
5 #include <cstring>
7 using namespace std;
9 extern bool foo2 (ostream &out, istream &in);
11 bool
12 foo1 (ostream &out, const char *in)
14   string tmp(in, std::strlen(in));
15   stringbuf sb (tmp);
16   istream fmt (&sb);
17   return foo2 (out, fmt);