| 1 | #import <Foundation/Foundation.h> |
|---|---|
| 2 | |
| 3 | @interface Child : NSObject |
| 4 | @property(nonatomic, copy) NSString *name; |
| 5 | @end |
| 6 | |
| 7 | @implementation Child |
| 8 | @end |
| 9 | |
| 10 | @interface Parent : NSObject |
| 11 | @property(nonatomic, strong) Child *child; |
| 12 | @end |
| 13 | |
| 14 | @implementation Parent |
| 15 | @end |
| 16 | |
| 17 | int main(int argc, char **argv) { |
| 18 | Child *child = [Child new]; |
| 19 | child.name = @"Seven"; |
| 20 | Parent *parent = [Parent new]; |
| 21 | parent.child = child; |
| 22 | puts("break here"); |
| 23 | return 0; |
| 24 | } |
| 25 |
