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