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; } };