#include <iostream>
class Hoge {
private:
static void f() { std::cout << "hoge" << std::endl; }
public:
static void (*get_f())() { return f; }
Hoge() {}
};
int main() {
// ordinary
Hoge *hoge = new Hoge();
hoge->get_f()();
delete hoge;
}
/* end */
I2luY2x1ZGUgPGlvc3RyZWFtPgoKY2xhc3MgSG9nZSB7CnByaXZhdGU6CiAgc3RhdGljIHZvaWQgZigpIHsgc3RkOjpjb3V0IDw8ICJob2dlIiA8PCBzdGQ6OmVuZGw7IH0KCnB1YmxpYzoKICBzdGF0aWMgdm9pZCAoKmdldF9mKCkpKCkgeyByZXR1cm4gZjsgfQogIEhvZ2UoKSB7fQp9OwoKaW50IG1haW4oKSB7Ci8vIG9yZGluYXJ5CiAgICBIb2dlICpob2dlID0gbmV3IEhvZ2UoKTsKICAgIGhvZ2UtPmdldF9mKCkoKTsKICAgIGRlbGV0ZSBob2dlOwp9Ci8qIGVuZCAqLwo=