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