mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-25 13:09:48 +00:00
bd0110a3cb
* ld-selective/selective.exp: Run it as xfailed. * ld-selective/4.cc: Correct spelling of "lose".
29 lines
359 B
C++
29 lines
359 B
C++
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
|
|
|
|
void _start()
|
|
{
|
|
getme()->bar();
|
|
}
|
|
|
|
extern "C" void __main() { }
|