7 void A::foo() { } // keep
8 void A::bar() { } // lose
15 void B::foo() { } // keep
17 void _start() __asm__("_start"); // keep
21 A
*getme() { return &a
; } // keep
27 #if (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
28 // gcc-2.95.2 gets this test wrong, and loses B::foo().
29 // Cheat. After all, we aren't trying to test the compiler here.
35 // In addition, keep A's virtual table.
37 // We'll wind up keeping `b' and thus B's virtual table because
38 // `a' and `b' are both referenced from the constructor function.
40 extern "C" void __main() { }