* cp-tree.h (make_typename_type): Change prototype.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / typename24.C
blob127c52663368442c482dc22f739a6cf9cc6728f4
1 // Build don't link:
2 // Origin: Mark Mitchell <mark@codesourcery.com>
4 class ostream;
6 extern ostream& cout;
8 class Foo { };
10 ostream &operator<<(ostream &os, const Foo &)
12   return os;
15 template<class T>
16 const typename T::fooz &operator<<(const Foo &, const T &t)
18   return t;
21 void main()
23   Foo foo;
25   cout << foo;