#include "bar.hpp" #include int bar(Foo *foo) { std::cout << "bar" << std::endl; return (foo == nullptr) ? -1 : foo->foo(); }