Sign in
gnu
/
gcc
/
19220ca6aa79921cc431e41f25986e16410c7a6a
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
access3.C
blob: 43303c95a943e7ea491f16a0bbd8ea60d301dcdf [
file
] [
log
] [
blame
]
// { dg-do compile }
// Origin: <bagnara@cs.unipr.it>
// PR c++/7809: Befriending inaccessible name.
class
A
{
private
:
void
f
();
// { dg-error "private" }
};
class
B
{
friend
void
A
::
f
();
// { dg-error "context" }
};