23 lines · plain
1// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp 2// RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"id=struct objc_object *" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp3 4extern "C" void *sel_registerName(const char *);5 6typedef struct objc_class * Class;7 8@interface Sub9- (void)dealloc;10@end11 12@interface I : Sub13- (void)dealloc;14@end15 16@implementation I17- (void)dealloc {18 return;19 [super dealloc];20}21@end22 23