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" }
}