blob: 4a8b1972779c628929ed0c480beb4ebaec833c14 [file] [log] [blame]
John McCall260611a2012-06-20 06:18:46 +00001// 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 Jahanian7c63fdd2010-02-26 01:42:20 +00002// 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
5typedef 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