summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit37.C
blob: f3d9f64d63eb49cadf708ded1b45a6ecb2993494 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { 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>();
}