Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
access2.C
blob: ee5c0eae07b83e0950bf0de4901c21046af6a3a7 [
file
] [
log
] [
blame
]
// { 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
;
}
};