Home | History | Annotate | Download | only in Rewriter
      1 // 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 
      5 void *sel_registerName(const char *);
      6 typedef 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;
     19   folderPost.completionBlock = ^{
     20     self.IVAR = 0;
     21     [self _finishInitialSync];
     22   };
     23 
     24   [folderPost setCompletionBlock : (^{
     25     self.IVAR = 0;
     26   })];
     27 }
     28 @dynamic IVAR;
     29 - (void) setCompletionBlock : (BLOCK_TYPE) arg {}
     30 @end
     31 
     32 
     33