brintos

brintos / llvm-project-archived public Read only

0
0
Text · 379 B · a300087 Raw
40 lines · plain
1#import <objc/NSObject.h>2 3@interface Foo : NSObject {4}5-(int)get;6@end7 8@implementation Foo9-(int)get10{11  return 1;12}13@end14 15@interface Bar : Foo {16}17-(int)get;18@end19 20@implementation Bar21-(int)get22{23  return 2; 24}25 26-(int)callme27{28  return [self get]; // Set breakpoint here.29}30@end31 32int main()33{34  @autoreleasepool35  {36    Bar *bar = [Bar alloc];37    return [bar callme];38  }39}40