xref: /aosp_15_r20/external/clang/test/CodeGenObjC/property-list-in-class.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck %s
2*67e74705SXin Li// CHECK: l_OBJC_$_PROP_LIST_C2" = private global { i32, i32, [3 x %struct._prop_t] } { i32 16, i32 3
3*67e74705SXin Li
4*67e74705SXin Li@protocol P
5*67e74705SXin Li@property int i;
6*67e74705SXin Li@end
7*67e74705SXin Li
8*67e74705SXin Li@protocol P1
9*67e74705SXin Li@property int i1;
10*67e74705SXin Li@end
11*67e74705SXin Li
12*67e74705SXin Li@protocol P2 < P1>
13*67e74705SXin Li@property int i2;
14*67e74705SXin Li@end
15*67e74705SXin Li
16*67e74705SXin Li@interface C1 { id isa; } @end
17*67e74705SXin Li
18*67e74705SXin Li@interface C2 : C1 <P, P2> {
19*67e74705SXin Li    int i;
20*67e74705SXin Li}
21*67e74705SXin Li@property int i2;
22*67e74705SXin Li@end
23*67e74705SXin Li
24*67e74705SXin Li@implementation C1
25*67e74705SXin Li+(void)initialize { }
26*67e74705SXin Li@end
27*67e74705SXin Li
28*67e74705SXin Li@implementation C2
29*67e74705SXin Li@synthesize i;
30*67e74705SXin Li@synthesize i1;
31*67e74705SXin Li@synthesize i2;
32*67e74705SXin Li@end
33