#include <iostream>

class Test {
public:
    void foo() {
        if (!this) {
            std::cout<<"Blah!"<<std::endl;
            return;
        }
        std::cout<<"Foo!"<<std::endl;
        std::cout<<"a = "<<a<<std::endl;
    }
    
private:
    int a;
};

int main() {
    Test* t = (Test*)123;
    t->foo();
    return 0;
}