blob: 04302d17f10f139fbdaeefc47821ae2d66aaca1d [file] [log] [blame]
Fariborz Jahanian36178092011-04-08 23:48:29 +00001// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
2// RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -Did="void *" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
3// radar 9254348
4
5void *sel_registerName(const char *);
6typedef void (^BLOCK_TYPE)(void);
7
8@interface CoreDAVTaskGroup
9{
10 int IVAR;
11}
12@property int IVAR;
13- (void) setCompletionBlock : (BLOCK_TYPE) arg;
14@end
15
16@implementation CoreDAVTaskGroup
17- (void)_finishInitialSync {
18 CoreDAVTaskGroup *folderPost;
Fariborz Jahanian1d015312011-04-11 21:17:02 +000019 folderPost.completionBlock = ^{
20 self.IVAR = 0;
21 [self _finishInitialSync];
22 };
23
24 [folderPost setCompletionBlock : (^{
25 self.IVAR = 0;
26 })];
Fariborz Jahanian36178092011-04-08 23:48:29 +000027}
28@dynamic IVAR;
29- (void) setCompletionBlock : (BLOCK_TYPE) arg {}
30@end
31
32