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