Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
access2.C
blob: dc5f7d73caad0ea32969f235e1a83de192c424c3 [
file
] [
log
] [
blame
]
// Test that a base doesn't get special rights to convert to itself.
struct
A
{
void
f
();
};
struct
B
:
private
A
{
};
B b
;
void
A
::
f
()
{
A
*
ap
=
&
b
;
// { dg-error "base|inherit" }
}