Sign in
llvm
/
llvm-archive
/
3698204cb8af2c80b326ae84c9a9e6a4bccbdedc
/
.
/
llvm-gcc-4.2
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
access2.C
blob: 24779945003edaf476f8f864db6d91d6d6cffd73 [
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" "" }
}