X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/d3f1e533acc7f70659b8bde9b6c040974f05e03b..bc3b7c8cda49ed8598284a489c0bb9694c67c6a4:/testing/kernel-cache-tests/auxkc-pageablekc-vtable-patching-namespaces/foo1.cpp diff --git a/testing/kernel-cache-tests/auxkc-pageablekc-vtable-patching-namespaces/foo1.cpp b/testing/kernel-cache-tests/auxkc-pageablekc-vtable-patching-namespaces/foo1.cpp new file mode 100644 index 0000000..e32f75a --- /dev/null +++ b/testing/kernel-cache-tests/auxkc-pageablekc-vtable-patching-namespaces/foo1.cpp @@ -0,0 +1,26 @@ + +#include "foo1.h" + +using namespace X; + +OSDefineMetaClassAndStructors( Foo1, KernelClass ) + +// Index 0 has been replaced with a method +OSMetaClassDefineReservedUsed(Foo1, 0) +// Index 1 has been replaced with a method +OSMetaClassDefineReservedUsed( Foo1, 1 ) + +OSMetaClassDefineReservedUnused( Foo1, 2 ) +OSMetaClassDefineReservedUnused( Foo1, 3 ) + +int Foo1::foo() { + return 0; +} + +int Foo1::foo1Used0() { + return 0; +} + +int Foo1::foo1Used1() { + return 0; +}