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 5179d918481..00000000000 --- a/ld/testsuite/ld-selective/5.cc +++ /dev/null @@ -1,32 +0,0 @@ -// This test currently fails because the C++ front end emits `A' as -// the base class called rather than `B' as it ought. At least it -// is erroring on the safe side... - -struct A -{ - virtual void foo(); - virtual void bar(); -}; - -void A::foo() { } // loose -void A::bar() { } // loose - -struct B : public A -{ - virtual void foo(); -}; - -void B::foo() { } // keep - -void _start() __asm__("_start"); // keep - -A a; -B b; // keep -B *getme() { return &b; } // keep - -void _start() -{ - getme()->foo(); -} - -extern "C" void __main() { } |