]> git.saurik.com Git - apple/dyld.git/blob - testing/kernel-cache-tests/auxkc-vtable-patching/bar.cpp
dyld-851.27.tar.gz
[apple/dyld.git] / testing / kernel-cache-tests / auxkc-vtable-patching / 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
12 OSDefineMetaClassAndStructors( Bar, Foo )
13
14 int Bar::foo() {
15 return 1;
16 }
17
18 int bar() {
19 Bar* bar = new Bar();
20 return bar->foo();
21 }