blob: 9df26ac872ce3f6dfe0c8839077a90ea67144121 [file] [log] [blame]
struct A
{
virtual void foo();
virtual void bar();
};
void A::foo() { } // loose
void A::bar() { } // keep
struct B : public A
{
virtual void foo();
};
void B::foo() { } // loose
void _start() __asm__("_start"); // keep
A a; // keep
B b;
A *getme() { return &a; } // keep
void _start()
{
getme()->bar();
}
extern "C" void __main() { }