brintos

brintos / llvm-project-archived public Read only

0
0
Text · 638 B · 49a3c27 Raw
50 lines · plain
1typedef int Int;2 3@interface I1 4@end5 6// Matching category7@interface I1 (Cat1)8- (Int)method0;9@end10 11// Matching class extension12@interface I1 ()13- (Int)method1;14@end15 16// Mismatched category17@interface I1 (Cat2)18- (float)method2;19@end20 21@interface I222@end23 24// Mismatched class extension25@interface I2 ()26- (float)method3;27@end28 29// Category with implementation30@interface I2 (Cat3)31@end32 33@implementation I2 (Cat3)34@end35 36// Category with implementation37@interface I2 (Cat5)38@end39 40@implementation I2 (Cat5)41@end42 43// Category with mismatched implementation44@interface I2 (Cat6)45@end46 47@implementation I2 (Cat6)48- (int)blah { return 0; }49@end50