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