OSDN Git Service

Addition of a whole slew of "eb" test cases generated from the egcs-bugs
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb44.C
1 // spurious 'const' in error.
2
3 #include <stdio.h>
4 #include <iostream.h>
5
6 template <class T>
7 class Vector
8 {
9   friend ostream& operator<< (ostream& out, const Vector<T> & vec);
10 };
11
12 template <class T>
13 ostream& operator<< (ostream& out,  const Vector<T> & vec)
14 {}
15
16 template class Vector<char>;
17 template ostream& operator<< (ostream& out,  const Vector<char> &);
18
19 main()
20 {
21   Vector<char> vc;
22   ostream out;
23   out << vc;
24 }