#include <iostream>
void f(class MyClass &mc);
class MyClass
{
public:
void g()
{
std::cout << "MyClass::g()" << std::endl;
}
};
int main()
{
MyClass mc;
f(mc);
}
void f(MyClass &mc)
{
mc.g();
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdm9pZCBmKGNsYXNzIE15Q2xhc3MgJm1jKTsKCmNsYXNzIE15Q2xhc3MKewpwdWJsaWM6Cgl2b2lkIGcoKQoJewoJCXN0ZDo6Y291dCA8PCAiTXlDbGFzczo6ZygpIiA8PCBzdGQ6OmVuZGw7Cgl9Cn07CgppbnQgbWFpbigpCnsKCU15Q2xhc3MgbWM7CglmKG1jKTsKfQoKdm9pZCBmKE15Q2xhc3MgJm1jKQp7CgltYy5nKCk7Cn0K