xref: /aosp_15_r20/external/clang/test/ASTMerge/Inputs/property1.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// Matching properties
2*67e74705SXin Li@interface I1 {
3*67e74705SXin Li}
4*67e74705SXin Li- (int)getProp2;
5*67e74705SXin Li- (void)setProp2:(int)value;
6*67e74705SXin Li@end
7*67e74705SXin Li
8*67e74705SXin Li// Mismatched property
9*67e74705SXin Li@interface I2
10*67e74705SXin Li@property (readonly) float Prop1;
11*67e74705SXin Li@end
12*67e74705SXin Li
13*67e74705SXin Li// Properties with implementations
14*67e74705SXin Li@interface I3 {
15*67e74705SXin Li  int ivar1;
16*67e74705SXin Li  int ivar2;
17*67e74705SXin Li  int ivar3;
18*67e74705SXin Li  int Prop4;
19*67e74705SXin Li}
20*67e74705SXin Li@property int Prop1;
21*67e74705SXin Li@property int Prop2;
22*67e74705SXin Li@property int Prop3;
23*67e74705SXin Li@property int Prop4;
24*67e74705SXin Li@end
25*67e74705SXin Li
26*67e74705SXin Li@implementation I3
27*67e74705SXin Li@synthesize Prop1 = ivar1;
28*67e74705SXin Li@synthesize Prop2 = ivar3;
29*67e74705SXin Li@dynamic Prop3;
30*67e74705SXin Li@synthesize Prop4;
31*67e74705SXin Li@end
32