brintos

brintos / llvm-project-archived public Read only

0
0
Text · 350 B · ed9c1d9 Raw
34 lines · plain
1#import <Foundation/Foundation.h>2 3@interface MyClass : NSObject {4@public5  int _foo;6};7 8-(id)init;9@end10 11@implementation MyClass12 13-(id)init14{15  if ([super init])16  {17    _foo = 3;18  }19 20  return self;21}22 23@end24 25int main ()26{27  @autoreleasepool28  {29    MyClass *mc = [[MyClass alloc] init];30 31    NSLog(@"%d", mc->_foo); // Set breakpoint here.32  }33}34