blob: eecdc379d67c51a60d612f7b4effdb0f9d3043dd [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 ();
void f (int);
void g ();
};
int main ()
{
A a;
&a.f; // { dg-error "cannot create a non-constant" }
&a.g; // { dg-error "cannot create a non-constant" }
}