brintos

brintos / llvm-project-archived public Read only

0
0
Text · 803 B · 45010d5 Raw
58 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify %s2// expected-no-diagnostics3 4@protocol P05-bar;6@end7 8@interface A <P0>9@end10 11// Interface conforms to inherited protocol12 13@interface B0 : A <P0>14@end15 16@implementation B017@end18 19// Interface conforms to a protocol which extends another. The other20// protocol is inherited, and extended methods are implemented.21 22@protocol P1 <P0>23-foo;24@end25 26@interface B1 : A <P1>27@end28 29@implementation B130-foo { return 0; };31@end32 33// Interface conforms to a protocol whose methods are provided by an34// alternate inherited protocol.35 36@protocol P237-bar;38@end39 40@interface B2 : A <P2>41@end42 43@implementation B244@end45 46// Interface conforms to a protocol whose methods are provided by a base class.47 48@interface A1 49-bar;50@end51 52@interface B3 : A1 <P2>53@end54 55@implementation B356@end57 58