darling-dyld/testing/kernel-cache-tests/kernel-vtable-patching/bar.cpp
2023-04-29 11:24:58 -07:00

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();
}