summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/friend4.C
blob: a1b8d32f1a2d5419b02e3b7eb84584231b29a546 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do run  }
class C
{
  template <class T>
  friend void f(T);

  int i;
};


template <class T>
void f(T)
{
  C c;
  c.i = 3;
}


int main()
{
  f(7);
}