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