Loading...
testing/kernel-cache-tests/kernel-vtable-patching-error/bar.cpp /dev/null dyld-1066.10
--- /dev/null
+++ dyld/dyld-1066.10/testing/kernel-cache-tests/kernel-vtable-patching-error/bar.cpp
@@ -0,0 +1,36 @@
+
+
+#include "../kmod.h"
+
+__attribute__((visibility(("hidden"))))
+int startKext() {
+	return 0;
+}
+
+__attribute__((visibility(("hidden"))))
+int endKext() {
+	return 0;
+}
+
+KMOD_EXPLICIT_DECL(com.apple.bar, "1.0.0", (void*)startKext, (void*)endKext)
+
+#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();
+}