aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/access2.C
blob: cacfbe1c6a38f1c619abddac821aa550bed4b34d (plain)
1
2
3
4
5
6
7
8
9
10
11
// Bug: g++ doesn't deal with friends also being derived classes.
// Build don't link:

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

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