* gcc.dg/compat/struct-by-value-5a_main.c,
[official-gcc.git] / gcc / testsuite / g++.dg / parse / access3.C
blob43303c95a943e7ea491f16a0bbd8ea60d301dcdf
1 // { dg-do compile }
3 // Origin: <bagnara@cs.unipr.it>
5 // PR c++/7809: Befriending inaccessible name.
7 class A {
8 private:
9   void f();             // { dg-error "private" }
12 class B {
13   friend void A::f();   // { dg-error "context" }