1 2 3 4 5 6 7 8 9 10
// test that foo is linked after bar #include "bar/bar.hpp" #include <iostream> int main() { std::cout << "main\n"; Foo foo{}; return bar(&foo); }