X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/d3f1e533acc7f70659b8bde9b6c040974f05e03b..bc3b7c8cda49ed8598284a489c0bb9694c67c6a4:/testing/kernel-cache-tests/auxkc-pageablekc-vtable-patching-namespaces/kernel.cpp diff --git a/testing/kernel-cache-tests/auxkc-pageablekc-vtable-patching-namespaces/kernel.cpp b/testing/kernel-cache-tests/auxkc-pageablekc-vtable-patching-namespaces/kernel.cpp new file mode 100644 index 0000000..ee0c8c2 --- /dev/null +++ b/testing/kernel-cache-tests/auxkc-pageablekc-vtable-patching-namespaces/kernel.cpp @@ -0,0 +1,17 @@ + +#include "kernel.h" + +using namespace X; + +OSDefineMetaClassAndStructors( KernelClass, OSObject ) + +// Index 0 has been replaced with a method +OSMetaClassDefineReservedUsed(KernelClass, 0) + +int KernelClass::foo() { + return 0; +} + +int KernelClass::kernelClassUsed0() { + return 0; +} \ No newline at end of file