#include <iostream>

struct X
{
    void func() { std::cout << "calling func\n"; }
};

int main()
{
    X * xp = nullptr;
    xp->func();
}