summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/access2.C
blob: ee5c0eae07b83e0950bf0de4901c21046af6a3a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// Bug: g++ doesn't deal with friends also being derived classes.

class A {
  int i;
  friend class B;
};

class B : public A {
  void f () { i = 1; }
};