]>
git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/testsuite/ld-selective/3.cc
7 void A::foo() { } // keep
8 void A::bar() { } // loose
15 void B::foo() { } // keep
17 void _start() __asm__("_start"); // keep
21 A
*getme() { return &a
; } // keep
28 // In addition, keep A's virtual table.
30 // We'll wind up keeping `b' and thus B's virtual table because
31 // `a' and `b' are both referenced from the constructor function.
33 extern "C" void __main() { }