blob: f3d9f64d63eb49cadf708ded1b45a6ecb2993494 [file] [log] [blame]
// { dg-do link }
// GROUPS passed templates
class ostream {};
template <class T>
class S;
template <class T>
void operator<<(ostream&, S<T>) {}
template <class T>
class S
{
friend void operator<<<>(ostream&, const S<T>);
};
int main()
{
ostream o;
o << S<int>();
}