Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
access6.C
blob: 50786ed6a34d80823cd26ab4ce9263bfca73f585 [
file
] [
log
] [
blame
]
// PR c++/28588
class
Foo
{
static
void
f
();
// { dg-message "private" }
static
void
f
(
int
);
static
void
g
();
// { dg-message "private" }
};
void
h
()
{
Foo
foo
;
void
(*
f
)();
f
=
foo
.
f
;
// { dg-error "context" }
f
=
foo
.
g
;
// { dg-error "context" }
}