Commit 54965141 by Martin v. Löwis

New test case.

From-SVN: r29561
parent 118a6ea1
// Special g++ Options: -Wno-pmf-conversions
// Test conversion of pointers to virtual member functions to
// pointers to non-member functions.
struct A{
int i;
A::A():i(1){}
virtual void foo();
}a;
void A::foo()
{
i = 0;
}
int main()
{
void (*f)(A*) = (void(*)(A*))(&A::foo);
f(&a);
return a.i;
}
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