brintos

brintos / llvm-project-archived public Read only

0
0
Text · 588 B · 64a03fb Raw
34 lines · plain
1// Matching properties2@interface I1 {3}4- (int)getProp2;5- (void)setProp2:(int)value;6@property (readonly) int Prop1;7@property (getter = getProp2, setter = setProp2:) int Prop2;8@end9 10// Mismatched property11@interface I212@property (readonly) int Prop1;13@end14 15// Properties with implementations16@interface I3 {17  int ivar1;18  int ivar2;19  int ivar3;20  int Prop4;21}22@property int Prop1;23@property int Prop2;24@property int Prop3;25@property int Prop4;26@end27 28@implementation I329@synthesize Prop2 = ivar2;30@synthesize Prop1 = ivar1;31@synthesize Prop3 = ivar3;32@synthesize Prop4 = Prop4;33@end34