dyld-832.7.1.tar.gz
[apple/dyld.git] / testing / kernel-cache-tests / kext-vtable-patching-error-small-vtable / 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 }