7 void A::foo() { } // keep
8 void A::bar() { } // lose
15 void B::foo() { } // keep
17 void _start() __asm__("_start"); // keep
18 void start() __asm__("start"); // some toolchains use this name.
22 A
*getme() { return &a
; } // keep
28 #if (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
29 // gcc-2.95.2 gets this test wrong, and loses B::foo().
30 // Cheat. After all, we aren't trying to test the compiler here.
41 // In addition, keep A's virtual table.
43 // We'll wind up keeping `b' and thus B's virtual table because
44 // `a' and `b' are both referenced from the constructor function.
46 extern "C" void __main() { }
This page took 0.029131 seconds and 4 git commands to generate.