Fariborz Jahanian | 3617809 | 2011-04-08 23:48:29 +0000 | [diff] [blame^] | 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 setCompletionBlock : (^{ |
| 20 | self.IVAR = 0; |
| 21 | })]; |
| 22 | } |
| 23 | @dynamic IVAR; |
| 24 | - (void) setCompletionBlock : (BLOCK_TYPE) arg {} |
| 25 | @end |
| 26 | |
| 27 | |