Daniel Dunbar | 191fdb6 | 2010-05-10 23:31:31 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -g %s -fblocks -S -o %t |
Devang Patel | 258cf27 | 2010-05-10 17:24:58 +0000 | [diff] [blame] | 2 | // Radar 7959934 |
3 | |||||
4 | @interface NSObject { | ||||
5 | struct objc_object *isa; | ||||
6 | } | ||||
7 | @end | ||||
8 | @interface Foo : NSObject { | ||||
9 | int _prop; | ||||
10 | } | ||||
11 | @end | ||||
12 | |||||
13 | @implementation Foo | ||||
14 | - (int)doSomething { | ||||
15 | int (^blk)(void) = ^{ return _prop; }; | ||||
16 | return blk(); | ||||
17 | } | ||||
18 | |||||
19 | @end | ||||
20 |