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 -std=gnu++98 -Wno-address-of-temporary -Did="void *" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
4 // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-modern-rw.cpp
5 // RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -Wno-address-of-temporary -Did="void *" -D"SEL=void*" -D"__declspec(X)=" %t-modern-rw.cpp
9 typedef unsigned long size_t;
11 void *sel_registerName(const char *);
12 typedef void (^BLOCK_TYPE)(void);
14 @interface CoreDAVTaskGroup
19 - (void) setCompletionBlock : (BLOCK_TYPE) arg;
22 @implementation CoreDAVTaskGroup
23 - (void)_finishInitialSync {
24 CoreDAVTaskGroup *folderPost;
25 folderPost.completionBlock = ^{
27 [self _finishInitialSync];
30 [folderPost setCompletionBlock : (^{
35 - (void) setCompletionBlock : (BLOCK_TYPE) arg {}