19990502 sourceware import
[deliverable/binutils-gdb.git] / ld / testsuite / ld-selective / 4.cc
1 struct A
2 {
3 virtual void foo();
4 virtual void bar();
5 };
6
7 void A::foo() { } // loose
8 void A::bar() { } // keep
9
10 struct B : public A
11 {
12 virtual void foo();
13 };
14
15 void B::foo() { } // loose
16
17 void _start() __asm__("_start"); // keep
18
19 A a; // keep
20 B b;
21 A *getme() { return &a; } // keep
22
23 void _start()
24 {
25 getme()->bar();
26 }
27
28 extern "C" void __main() { }
This page took 0.030958 seconds and 4 git commands to generate.