]> git.saurik.com Git - apple/dyld.git/blob - testing/kernel-cache-tests/kext-vtable-patching-arm64e/baz.cpp
dyld-832.7.1.tar.gz
[apple/dyld.git] / testing / kernel-cache-tests / kext-vtable-patching-arm64e / baz.cpp
1
2 #include "bar.h"
3
4 class Baz : public Bar
5 {
6 OSDeclareDefaultStructors( Baz )
7
8 public:
9 virtual int foo();
10 };
11
12 OSDefineMetaClassAndStructors( Baz, Bar )
13
14 int Baz::foo() {
15 return 1;
16 }
17
18 int baz() {
19 Baz* baz = new Baz();
20 return baz->foo();
21 }