rt_gccstream/gcc/testsuite/g++.dg/inherit/access6.C

16 lines
263 B
C

// PR c++/28588
class Foo {
static void f(); // { dg-error "private" }
static void f(int);
static void g(); // { dg-error "private" }
};
void h()
{
Foo foo;
void (*f)();
f = foo.f; // { dg-error "context" }
f = foo.g; // { dg-error "context" }
}