| 1 | #import <Foundation/Foundation.h> |
|---|---|
| 2 | |
| 3 | void baz() {} |
| 4 | |
| 5 | struct MyClass { |
| 6 | void bar() { |
| 7 | baz(); // break here |
| 8 | } |
| 9 | }; |
| 10 | |
| 11 | @interface MyObject : NSObject {} |
| 12 | - (void)foo; |
| 13 | @end |
| 14 | |
| 15 | @implementation MyObject |
| 16 | - (void)foo { |
| 17 | MyClass c; |
| 18 | c.bar(); // break here |
| 19 | } |
| 20 | @end |
| 21 | |
| 22 | int main (int argc, char const *argv[]) { |
| 23 | NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; |
| 24 | id obj = [MyObject new]; |
| 25 | [obj foo]; |
| 26 | [pool release]; |
| 27 | return 0; |
| 28 | } |
| 29 |
