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 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 23