2 // spurious 'const' in error.
3 // For egcs-2.91.34, the warning message refers to
4 // class ostream & operator <<(class ostream &, const class Vector<T> &)
5 // Also, the template instantiation does not provide the missing
6 // friend function, the non-template function does
17 friend ostream& operator<< (ostream& out, const Vector<T> & vec); // { dg-warning "non-template" "warn" }
18 // { dg-message "note" "note" { target *-*-* } 17 }
22 ostream& operator<< (ostream& out, const Vector<T> & vec)
24 abort(); // this should not be called
27 template class Vector<char>;
28 template ostream& operator<< (ostream& out, const Vector<char> &);
30 ostream& operator<< (ostream& out, const Vector<char>&)