blob: a6ae3ec595bd81793503d5bcf0421d9442e193b8 [file] [log] [blame]
// { dg-do assemble }
// Test for proper diagnostics on trying to take the address of a non-static
// member function.
struct A {
void f (); // { dg-error "candidate function" }
void f (int); // { dg-error "candidate function" }
void g ();
};
int main ()
{
A a;
&a.f; // { dg-error "" } overloaded
&a.g; // { dg-error "" } can't write a pmf like this
}