]> git.saurik.com Git - apple/dyld.git/blame - testing/kernel-cache-tests/auxkc-vtable-patching-no-data-const/foo.cpp
dyld-851.27.tar.gz
[apple/dyld.git] / testing / kernel-cache-tests / auxkc-vtable-patching-no-data-const / foo.cpp
CommitLineData
bc3b7c8c
A
1
2#include "foo.h"
3
4OSDefineMetaClassAndStructors( Foo, OSObject )
5
6// Index 0 has been replaced with a method
7OSMetaClassDefineReservedUsed(Foo, 0)
8OSMetaClassDefineReservedUnused( Foo, 1 )
9OSMetaClassDefineReservedUnused( Foo, 2 )
10OSMetaClassDefineReservedUnused( Foo, 3 )
11
12int Foo::foo() {
13 return 0;
14}
15
16int Foo::fooUsed0() {
17 return 0;
18}
19
20int foo() {
21 Foo* foo = new Foo();
22 return foo->foo() + foo->fooUsed0();
23}