Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify %s -fblocks |
Steve Naroff | d7612e1 | 2008-11-17 16:28:52 +0000 | [diff] [blame] | 2 | |
3 | @interface NSObject { | ||||
4 | struct objc_object *isa; | ||||
5 | } | ||||
6 | @end | ||||
7 | @interface Foo : NSObject { | ||||
8 | int _prop; | ||||
9 | } | ||||
10 | @end | ||||
11 | |||||
12 | @implementation Foo | ||||
13 | - (int)doSomething { | ||||
14 | int (^blk)(void) = ^{ return _prop; }; | ||||
15 | return blk(); | ||||
16 | } | ||||
17 | |||||
18 | @end | ||||
19 |