class A {
public:
void f () {}
};
int main (void)
{
A a;
void *p = &a;
static_cast<A*>(p)->f();
return 0;
}