summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/friend24.C
blob: 5a4116fd47bc6dedc4f9aab9469b552e779dee9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }

template <class T>
struct S
{
  template <class U = T>
  friend class S;

  void f(T);
};

template struct S<int>;

void g()
{
  S<> s;
  s.f(3);
}