Automatic date update in version.in
[binutils-gdb.git] / ld / testsuite / ld-selective / 4.cc
blobf4fc21ca15acb0739b7e9fa56ecde0f4e3a4c951
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
18 void start() __asm__("start"); // some toolchains use this name.
20 A a; // keep
21 B b;
22 A *getme() { return &a; } // keep
24 void _start()
26 getme()->bar();
29 void start ()
31 _start ();
34 extern "C" void __main() { }