blob: 7645c2d5e0db6752e663489197e83e6e94c8f210 [file] [log] [blame]
// 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" }
}