58 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify %s2// expected-no-diagnostics3@interface NSObject @end4 5@protocol ProtocolA6 7+ (id)classMethod;8- (id)instanceMethod;9 10@end11 12@protocol ProtocolB <ProtocolA>13 14@end15 16@interface Foo : NSObject <ProtocolB>17 18@end19 20@interface SubFoo : Foo21 22@end23 24@implementation SubFoo25 26+ (id)method {27 return [super classMethod];28}29 30- (id)method {31 return [super instanceMethod];32}33 34@end35 36 37@protocol ProtC38-document;39@end40 41@interface I1 : NSObject42@end43 44@interface I1(cat)45-document;46@end47 48@interface I2 : NSObject49-document;50@end51 52@interface I2() <ProtC>53@end54 55@implementation I256- document { return 0; }57@end58