#include <iostream>
struct A {
int field;
int method();
void *self();
};
int A::method() {
return 42;
}
void *A::self() {
return this;
}
int main() {
A *a = NULL;
std::cout << a->method() << std::endl;
std::cout << a->self() << std::endl;
return 0;
}