John McCall | 260611a | 2012-06-20 06:18:46 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o %t-rw.cpp |
Fariborz Jahanian | 7c63fdd | 2010-02-26 01:42:20 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp |
| 3 | // radar 7214439 |
| 4 | |
| 5 | typedef void (^void_block_t)(void); |
| 6 | |
| 7 | @interface Y { |
| 8 | void_block_t __completion; |
| 9 | Y* YVAR; |
| 10 | id ID; |
| 11 | } |
| 12 | @property (copy) void_block_t completionBlock; |
| 13 | @property (retain) Y* Yblock; |
| 14 | @property (copy) id ID; |
| 15 | @end |
| 16 | |
| 17 | @implementation Y |
| 18 | @synthesize completionBlock=__completion; |
| 19 | @synthesize Yblock = YVAR; |
| 20 | @synthesize ID; |
| 21 | @end |
| 22 | |