2000-10-31 Philip Blundell <philb@gnu.org>
[binutils.git] / ld / testsuite / ld-selective / 4.cc
blob02864a731cd93111b411d11eaa02d56e41c0f7da
1 struct A
3 virtual void foo();
4 virtual void bar();
5 };
7 void A::foo() { } // lose
8 void A::bar() { } // keep
10 struct B : public A
12 virtual void foo();
15 void B::foo() { } // lose
17 void _start() __asm__("_start"); // keep
19 A a; // keep
20 B b;
21 A *getme() { return &a; } // keep
23 void _start()
25 getme()->bar();
28 extern "C" void __main() { }