From-SVN: r23188
This commit is contained in:
Jason Merrill 1998-10-19 16:13:26 -04:00
parent 1590ea76e9
commit ea4d3ff6e0

View File

@ -0,0 +1,21 @@
// 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);
}