1// { dg-do assemble  }
2#include <cctype>
3#include <iostream>
4#include <sstream>
5#include <cstring>
6
7using namespace std;
8
9extern bool foo2 (ostream &out, istream &in);
10
11bool
12foo1 (ostream &out, const char *in)
13{
14  string tmp(in, std::strlen(in));
15  stringbuf sb (tmp);
16  istream fmt (&sb);
17  return foo2 (out, fmt);
18}
19