URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 38 |
Rev 156 |
struct A
|
struct A
|
{
|
{
|
virtual void foo();
|
virtual void foo();
|
virtual void bar();
|
virtual void bar();
|
};
|
};
|
|
|
void A::foo() { } // lose
|
void A::foo() { } // lose
|
void A::bar() { } // keep
|
void A::bar() { } // keep
|
|
|
struct B : public A
|
struct B : public A
|
{
|
{
|
virtual void foo();
|
virtual void foo();
|
};
|
};
|
|
|
void B::foo() { } // lose
|
void B::foo() { } // lose
|
|
|
void _start() __asm__("_start"); // keep
|
void _start() __asm__("_start"); // keep
|
void start() __asm__("start"); // some toolchains use this name.
|
void start() __asm__("start"); // some toolchains use this name.
|
|
|
A a; // keep
|
A a; // keep
|
B b;
|
B b;
|
A *getme() { return &a; } // keep
|
A *getme() { return &a; } // keep
|
|
|
void _start()
|
void _start()
|
{
|
{
|
getme()->bar();
|
getme()->bar();
|
}
|
}
|
|
|
void start ()
|
void start ()
|
{
|
{
|
_start ();
|
_start ();
|
}
|
}
|
|
|
extern "C" void __main() { }
|
extern "C" void __main() { }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.