aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/friend5.C
blob: 516be4dd018ccbc1b9d0dcce04ba5efd2c115b22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class C
{
  template <class T>
  friend void f(T)
    {
      C c;
      c.i = 3;
    }

  int i;
};


int main()
{
  f(7);
}