bolt/deps/llvm-18.1.8/lldb/test/API/lang/objc/objc-super/class.m

40 lines
379 B
Mathematica
Raw Normal View History

2025-02-14 19:21:04 +01:00
#import <objc/NSObject.h>
@interface Foo : NSObject {
}
-(int)get;
@end
@implementation Foo
-(int)get
{
return 1;
}
@end
@interface Bar : Foo {
}
-(int)get;
@end
@implementation Bar
-(int)get
{
return 2;
}
-(int)callme
{
return [self get]; // Set breakpoint here.
}
@end
int main()
{
@autoreleasepool
{
Bar *bar = [Bar alloc];
return [bar callme];
}
}