xref: /llvm-project/lldb/test/API/lang/objc/objc-ivar-stripped/main.m (revision 99451b4453688a94c6014cac233d371ab4cc342d)
1#import <Foundation/Foundation.h>
2
3@interface MyClass : NSObject {
4@public
5  int _foo;
6};
7
8-(id)init;
9@end
10
11@implementation MyClass
12
13-(id)init
14{
15  if ([super init])
16  {
17    _foo = 3;
18  }
19
20  return self;
21}
22
23@end
24
25int main ()
26{
27  @autoreleasepool
28  {
29    MyClass *mc = [[MyClass alloc] init];
30
31    NSLog(@"%d", mc->_foo); // Set breakpoint here.
32  }
33}
34