1#import <Foundation/Foundation.h>
2
3@interface Foo : NSObject {}
4
5-(id) init;
6
7@end
8
9@implementation Foo
10
11-(id) init
12{
13 return self = [super init];
14}
15@end
16
17int main()
18{
19 Foo *foo = [Foo new];
20 NSLog(@"a"); // Set breakpoint here.
21 return 0;
22}
23

Provided by KDAB

Privacy Policy
Update your C++ knowledge – Modern C++11/14/17 Training
Find out more

source code of lldb/test/API/lang/objc/objc-po-hint/main.m