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
* cp-tree.h (make_typename_type): Change prototype.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
typename24.C
blob
127c52663368442c482dc22f739a6cf9cc6728f4
1
// Build don't link:
2
// Origin: Mark Mitchell <mark@codesourcery.com>
3
4
class ostream;
5
6
extern ostream& cout;
7
8
class Foo { };
9
10
ostream &operator<<(ostream &os, const Foo &)
11
{
12
return os;
13
}
14
15
template<class T>
16
const typename T::fooz &operator<<(const Foo &, const T &t)
17
{
18
return t;
19
}
20
21
void main()
22
{
23
Foo foo;
24
25
cout << foo;
26
}