#include <iostream>

struct S
{
    void foo()
    {
        std::cout << std::boolalpha << (this == nullptr) << std::endl;
    }
};

int main()
{
    reinterpret_cast<S*>(0)->foo();
}