1*f4a2713aSLionel Sambuc// Matches 2*f4a2713aSLionel Sambuc@interface I1 { 3*f4a2713aSLionel Sambuc int ivar1; 4*f4a2713aSLionel Sambuc} 5*f4a2713aSLionel Sambuc@end 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc// Matches 8*f4a2713aSLionel Sambuc@interface I2 : I1 { 9*f4a2713aSLionel Sambuc float ivar2; 10*f4a2713aSLionel Sambuc} 11*f4a2713aSLionel Sambuc@end 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambuc// Ivar mismatch 14*f4a2713aSLionel Sambuc@interface I3 { 15*f4a2713aSLionel Sambuc int ivar1; 16*f4a2713aSLionel Sambuc float ivar2; 17*f4a2713aSLionel Sambuc} 18*f4a2713aSLionel Sambuc@end 19*f4a2713aSLionel Sambuc 20*f4a2713aSLionel Sambuc// Superclass mismatch 21*f4a2713aSLionel Sambuc@interface I4 : I1 { 22*f4a2713aSLionel Sambuc} 23*f4a2713aSLionel Sambuc@end 24*f4a2713aSLionel Sambuc 25*f4a2713aSLionel Sambuc// Methods match 26*f4a2713aSLionel Sambuc@interface I5 27*f4a2713aSLionel Sambuc+ (float)bar; 28*f4a2713aSLionel Sambuc- (int)foo; 29*f4a2713aSLionel Sambuc@end 30*f4a2713aSLionel Sambuc 31*f4a2713aSLionel Sambuc// Method mismatch 32*f4a2713aSLionel Sambuc@interface I6 33*f4a2713aSLionel Sambuc+ (float)foo; 34*f4a2713aSLionel Sambuc@end 35*f4a2713aSLionel Sambuc 36*f4a2713aSLionel Sambuc// Method mismatch 37*f4a2713aSLionel Sambuc@interface I7 38*f4a2713aSLionel Sambuc- (int)foo; 39*f4a2713aSLionel Sambuc+ (int)bar:(float)x; 40*f4a2713aSLionel Sambuc@end 41*f4a2713aSLionel Sambuc 42*f4a2713aSLionel Sambuc// Method mismatch 43*f4a2713aSLionel Sambuc@interface I8 44*f4a2713aSLionel Sambuc- (int)foo; 45*f4a2713aSLionel Sambuc+ (int)bar:(float)x, ...; 46*f4a2713aSLionel Sambuc@end 47*f4a2713aSLionel Sambuc 48*f4a2713aSLionel Sambuc// Matching protocol 49*f4a2713aSLionel Sambuc@protocol P0 50*f4a2713aSLionel Sambuc+ (int)foo; 51*f4a2713aSLionel Sambuc- (int)bar:(float)x; 52*f4a2713aSLionel Sambuc@end 53*f4a2713aSLionel Sambuc 54*f4a2713aSLionel Sambuc// Protocol with mismatching method 55*f4a2713aSLionel Sambuc@protocol P1 56*f4a2713aSLionel Sambuc+ (int)foo; 57*f4a2713aSLionel Sambuc- (int)bar:(double)x; 58*f4a2713aSLionel Sambuc@end 59*f4a2713aSLionel Sambuc 60*f4a2713aSLionel Sambuc// Interface with protocol 61*f4a2713aSLionel Sambuc@interface I9 <P0> 62*f4a2713aSLionel Sambuc+ (int)foo; 63*f4a2713aSLionel Sambuc- (int)bar:(float)x; 64*f4a2713aSLionel Sambuc@end 65*f4a2713aSLionel Sambuc 66*f4a2713aSLionel Sambuc// Protocol with protocol 67*f4a2713aSLionel Sambuc@protocol P2 <P0> 68*f4a2713aSLionel Sambuc- (float)wibble:(int)a1 second:(int)a2; 69*f4a2713aSLionel Sambuc@end 70*f4a2713aSLionel Sambuc 71*f4a2713aSLionel Sambuc// Forward-declared interface 72*f4a2713aSLionel Sambuc@class I10; @interface I12 @end 73*f4a2713aSLionel Sambuc@interface I11 74*f4a2713aSLionel Sambuc@end 75*f4a2713aSLionel Sambuc 76*f4a2713aSLionel Sambuc// Forward-declared protocols 77*f4a2713aSLionel Sambuc@protocol P3, P4; 78*f4a2713aSLionel Sambuc@protocol P5 79*f4a2713aSLionel Sambuc- (double)honk:(int)a; 80*f4a2713aSLionel Sambuc@end 81*f4a2713aSLionel Sambuc 82*f4a2713aSLionel Sambuc// Interface with implementation 83*f4a2713aSLionel Sambuc@interface I13 84*f4a2713aSLionel Sambuc@end 85*f4a2713aSLionel Sambuc 86*f4a2713aSLionel Sambuc@implementation I13 87*f4a2713aSLionel Sambuc@end 88*f4a2713aSLionel Sambuc 89*f4a2713aSLionel Sambuc@interface I13b 90*f4a2713aSLionel Sambuc@end 91*f4a2713aSLionel Sambuc 92*f4a2713aSLionel Sambuc@implementation I13b 93*f4a2713aSLionel Sambuc@end 94*f4a2713aSLionel Sambuc 95*f4a2713aSLionel Sambuc// Implementation by itself 96*f4a2713aSLionel Sambuc@implementation I14 : I12 97*f4a2713aSLionel Sambuc@end 98*f4a2713aSLionel Sambuc 99*f4a2713aSLionel Sambuc@implementation I15 : I11 100*f4a2713aSLionel Sambuc@end 101