Commit ea4d3ff6 by Jason Merrill

new

From-SVN: r23188
parent 1590ea76
// Test for proper handling of references to overloaded member functions.
struct A {
static void f (int) { }
void f ();
};
void (*p)(int) = &A::f;
void A::f ()
{
p = f;
}
int main()
{
A a;
p = &a.f;
(a.f)();
(a.f)(42);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment