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
6 @interface empty_root @end
8 @interface root_with_ivars
15 @interface MAXIMAL : root_with_ivars<PROTO>
23 @implementation MAXIMAL
26 //=========================================
27 @interface empty_class @end
29 @implementation empty_class @end
30 //=========================================
31 @interface class_empty_root : empty_root @end
33 @implementation class_empty_root @end
34 //=========================================
35 @interface class_with_ivars : empty_root
37 int class_with_ivars_IVAR;
41 @implementation class_with_ivars @end
42 //=========================================
43 @interface class_has_no_ivar : root_with_ivars @end
45 @implementation class_has_no_ivar @end
47 //============================class needs to be synthesized here=====================
58 - (SUPER *) Meth : (SUPER *)arg {
64 @interface INTF_DECL {
68 double Meth(INTF_DECL *p, FORM_CLASS *f) {