1 extern "C" int a(); 2 main()3 int main() { 4 return a(); 5 } 6 7 // Built with gcc 4.6.3 8 // $ mkdir -p /tmp/dbginfo 9 // $ cp dwarfdump-test2-helper.cc dwarfdump-test2-main.cc /tmp/dbginfo/ 10 // $ cd /tmp/dbginfo 11 // $ g++ -g dwarfdump-test2-helper.cc dwarfdump-test2-main.cc -o <output> 12