diff options
Diffstat (limited to 'ld/testsuite/ld-selective/5.cc')
-rw-r--r-- | ld/testsuite/ld-selective/5.cc | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/ld/testsuite/ld-selective/5.cc b/ld/testsuite/ld-selective/5.cc deleted file mode 100644 index f5289f874a7..00000000000 --- a/ld/testsuite/ld-selective/5.cc +++ /dev/null @@ -1,32 +0,0 @@ -struct A -{ - virtual void foo(); - virtual void bar(); -}; - -void A::foo() { } // lose -void A::bar() { } // keep - -struct B : public A -{ - virtual void foo(); -}; - -void B::foo() { } // lose - -void _start() __asm__("_start"); // keep - -A a; // keep -B b; -A *getme() { return &a; } // keep - -extern B* dropme2(); -void dropme1() { dropme2()->foo(); } // lose -B *dropme2() { return &b; } // lose - -void _start() -{ - getme()->bar(); -} - -extern "C" void __main() { } |