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

  int i;
};


int main()
{
  C<int> ci;

  f(ci);
}