This commit was generated by cvs2svn to track changes on a CVS vendor
[deliverable/binutils-gdb.git] / ld / testsuite / ld-selective / 3.cc
CommitLineData
252b5132
RH
1struct A
2{
3 virtual void foo();
4 virtual void bar();
5};
6
7void A::foo() { } // keep
8void A::bar() { } // loose
9
10struct B : public A
11{
12 virtual void foo();
13};
14
15void B::foo() { } // keep
16
17void _start() __asm__("_start"); // keep
18
19A a; // keep
20B b;
21A *getme() { return &a; } // keep
22
23void _start()
24{
25 getme()->foo();
26}
27
28// In addition, keep A's virtual table.
29
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.
32
33extern "C" void __main() { }
This page took 0.029022 seconds and 4 git commands to generate.