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