1*67e74705SXin Li// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp 2*67e74705SXin Li// 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 3*67e74705SXin Li// rdar:// 11076938 4*67e74705SXin Li 5*67e74705SXin Li@interface Root @end 6*67e74705SXin Li 7*67e74705SXin Li@interface Super : Root 8*67e74705SXin Li@end 9*67e74705SXin Li 10*67e74705SXin Li@interface Sub : Super 11*67e74705SXin Li@end 12*67e74705SXin Li 13*67e74705SXin Li@implementation Sub @end 14*67e74705SXin Li 15*67e74705SXin Li@implementation Root @end 16*67e74705SXin Li 17*67e74705SXin Li@interface Root(Cat) @end 18*67e74705SXin Li 19*67e74705SXin Li@interface Sub(Cat) @end 20*67e74705SXin Li 21*67e74705SXin Li@implementation Root(Cat) @end 22*67e74705SXin Li 23*67e74705SXin Li@implementation Sub(Cat) @end 24