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 -std=gnu++98 -fblocks -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
11 void (^_block)(id<P>);
12 void (*_fptr)(void (^_block)(id<P>));
14 id<P, P1> (^ext_block)(id<P>, INTF<P,P1>*, INTF*);
17 INTF<P> *(*imp_fptr)(void (^_block)(id<P>, INTF<P,P1>*));
22 @implementation INTF @end
29 void (^_block)(id<P>);
30 void (*_fptr)(void (^_block)(id<P>));
35 @interface MISC_INTF()
38 id<P, P1> (^ext_block)(id<P>, MISC_INTF<P,P1>*, MISC_INTF*);
42 @interface MISC_INTF() {
47 @interface MISC_INTF() { int II2; double DD2; }
50 @interface MISC_INTF() { int II3;
54 @interface MISC_INTF() { int II4; double DD4;
58 @implementation MISC_INTF
62 MISC_INTF<P> *(*imp_fptr)(void (^_block)(id<P>, MISC_INTF<P,P1>*));