xref: /aosp_15_r20/external/clang/test/CodeGenObjC/2011-03-08-IVarLookup.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// RUN: %clang -S -emit-llvm -m64 -fobjc-abi-version=2 %s -o /dev/null
2*67e74705SXin Li
3*67e74705SXin Litypedef unsigned int UInt_t;
4*67e74705SXin Li
5*67e74705SXin Li@interface A
6*67e74705SXin Li{
7*67e74705SXin Li@protected
8*67e74705SXin Li  UInt_t _f1;
9*67e74705SXin Li}
10*67e74705SXin Li@end
11*67e74705SXin Li
12*67e74705SXin Li@interface B : A { }
13*67e74705SXin Li@end
14*67e74705SXin Li
15*67e74705SXin Li@interface A ()
16*67e74705SXin Li@property (assign) UInt_t f1;
17*67e74705SXin Li@end
18*67e74705SXin Li
19*67e74705SXin Li@interface B ()
20*67e74705SXin Li@property (assign) int x;
21*67e74705SXin Li@end
22*67e74705SXin Li
23*67e74705SXin Li@implementation B
24*67e74705SXin Li@synthesize x;
25*67e74705SXin Li- (id) init
26*67e74705SXin Li{
27*67e74705SXin Li  _f1 = 0;
28*67e74705SXin Li  return self;
29*67e74705SXin Li}
30*67e74705SXin Li@end
31