1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc// expected-no-diagnostics 3*f4a2713aSLionel Sambuc@interface NSObject @end 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambuc@protocol ProtocolA 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc+ (id)classMethod; 8*f4a2713aSLionel Sambuc- (id)instanceMethod; 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc@end 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc@protocol ProtocolB <ProtocolA> 13*f4a2713aSLionel Sambuc 14*f4a2713aSLionel Sambuc@end 15*f4a2713aSLionel Sambuc 16*f4a2713aSLionel Sambuc@interface Foo : NSObject <ProtocolB> 17*f4a2713aSLionel Sambuc 18*f4a2713aSLionel Sambuc@end 19*f4a2713aSLionel Sambuc 20*f4a2713aSLionel Sambuc@interface SubFoo : Foo 21*f4a2713aSLionel Sambuc 22*f4a2713aSLionel Sambuc@end 23*f4a2713aSLionel Sambuc 24*f4a2713aSLionel Sambuc@implementation SubFoo 25*f4a2713aSLionel Sambuc 26*f4a2713aSLionel Sambuc+ (id)method { 27*f4a2713aSLionel Sambuc return [super classMethod]; 28*f4a2713aSLionel Sambuc} 29*f4a2713aSLionel Sambuc 30*f4a2713aSLionel Sambuc- (id)method { 31*f4a2713aSLionel Sambuc return [super instanceMethod]; 32*f4a2713aSLionel Sambuc} 33*f4a2713aSLionel Sambuc 34*f4a2713aSLionel Sambuc@end 35*f4a2713aSLionel Sambuc 36*f4a2713aSLionel Sambuc 37*f4a2713aSLionel Sambuc@protocol ProtC 38*f4a2713aSLionel Sambuc-document; 39*f4a2713aSLionel Sambuc@end 40*f4a2713aSLionel Sambuc 41*f4a2713aSLionel Sambuc@interface I1 : NSObject 42*f4a2713aSLionel Sambuc@end 43*f4a2713aSLionel Sambuc 44*f4a2713aSLionel Sambuc@interface I1(cat) 45*f4a2713aSLionel Sambuc-document; 46*f4a2713aSLionel Sambuc@end 47*f4a2713aSLionel Sambuc 48*f4a2713aSLionel Sambuc@interface I2 : NSObject 49*f4a2713aSLionel Sambuc-document; 50*f4a2713aSLionel Sambuc@end 51*f4a2713aSLionel Sambuc 52*f4a2713aSLionel Sambuc@interface I2() <ProtC> 53*f4a2713aSLionel Sambuc@end 54*f4a2713aSLionel Sambuc 55*f4a2713aSLionel Sambuc@implementation I2 56*f4a2713aSLionel Sambuc- document { return 0; } 57*f4a2713aSLionel Sambuc@end 58