1 // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
2 // RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
5 typedef void(^BL)(void);
7 id return_id(void(^block)(void)) {
11 BL return_block(id obj) {
19 block = obj; // AnyPointerToBlockPointerCast
20 obj = block; // BlockPointerToObjCPointerCast
24 void(^block1)(void) = obj1;