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

  int i;
};


int main()
{
  f(7);
}