xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/objc2-ivar-assign.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fobjc-gc -emit-llvm -o %t %s
2*f4a2713aSLionel Sambuc// RUN: grep objc_assign_ivar %t | count 6
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuc// PR13820
5*f4a2713aSLionel Sambuc// REQUIRES: LP64
6*f4a2713aSLionel Sambuc
7*f4a2713aSLionel Sambuc@interface I @end
8*f4a2713aSLionel Sambuc
9*f4a2713aSLionel Sambuctypedef I TI;
10*f4a2713aSLionel Sambuctypedef I* TPI;
11*f4a2713aSLionel Sambuc
12*f4a2713aSLionel Sambuctypedef id ID;
13*f4a2713aSLionel Sambuc
14*f4a2713aSLionel Sambuc@interface MyClass {
15*f4a2713aSLionel Sambuc}
16*f4a2713aSLionel Sambuc
17*f4a2713aSLionel Sambuc@property id property;
18*f4a2713aSLionel Sambuc@property I* propertyI;
19*f4a2713aSLionel Sambuc
20*f4a2713aSLionel Sambuc@property TI* propertyTI;
21*f4a2713aSLionel Sambuc
22*f4a2713aSLionel Sambuc@property TPI propertyTPI;
23*f4a2713aSLionel Sambuc
24*f4a2713aSLionel Sambuc@property ID propertyID;
25*f4a2713aSLionel Sambuc@end
26*f4a2713aSLionel Sambuc
27*f4a2713aSLionel Sambuc@implementation MyClass
28*f4a2713aSLionel Sambuc	@synthesize property=_property;
29*f4a2713aSLionel Sambuc        @synthesize propertyI;
30*f4a2713aSLionel Sambuc        @synthesize propertyTI=_propertyTI;
31*f4a2713aSLionel Sambuc        @synthesize propertyTPI=_propertyTPI;
32*f4a2713aSLionel Sambuc         @synthesize propertyID = _propertyID;
33*f4a2713aSLionel Sambuc@end
34*f4a2713aSLionel Sambuc
35*f4a2713aSLionel Sambucint main () {
36*f4a2713aSLionel Sambuc    MyClass *myObj;
37*f4a2713aSLionel Sambuc    myObj.property = 0;
38*f4a2713aSLionel Sambuc    myObj.propertyI = 0;
39*f4a2713aSLionel Sambuc    myObj.propertyTI = 0;
40*f4a2713aSLionel Sambuc    myObj.propertyTPI = 0;
41*f4a2713aSLionel Sambuc    myObj.propertyID = 0;
42*f4a2713aSLionel Sambuc    return 0;
43*f4a2713aSLionel Sambuc}
44