]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-selective/4.cc
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-selective / 4.cc
CommitLineData
4b329e35
CM
1struct A
2{
3 virtual void foo();
4 virtual void bar();
5};
6
7void A::foo() { } // loose
8void A::bar() { } // keep
9
10struct B : public A
11{
12 virtual void foo();
13};
14
15void B::foo() { } // loose
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() { }