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
Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eb39.C
blob
144d3fff7ee5515a898250d8c7724b92c8b080f7
1
// { dg-do assemble }
2
#include <cctype>
3
#include <iostream>
4
#include <sstream>
5
#include <cstring>
6
7
using namespace std;
8
9
extern bool foo2 (ostream &out, istream &in);
10
11
bool
12
foo1 (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
}