mirror of
https://github.com/darlinghq/darling-dyld.git
synced 2024-11-23 12:29:44 +00:00
22 lines
252 B
C++
22 lines
252 B
C++
|
|
#include "foo.h"
|
|
|
|
class Bar : public Foo
|
|
{
|
|
OSDeclareDefaultStructors( Bar )
|
|
|
|
public:
|
|
virtual int foo();
|
|
};
|
|
|
|
OSDefineMetaClassAndStructors( Bar, Foo )
|
|
|
|
int Bar::foo() {
|
|
return 1;
|
|
}
|
|
|
|
int bar() {
|
|
Bar* bar = new Bar();
|
|
return bar->foo();
|
|
}
|