brintos

brintos / llvm-project-archived public Read only

0
0
Text · 756 B · 05a7b35 Raw
44 lines · plain
1// RUN: %clang_cc1 -fobjc-gc -emit-llvm -o %t %s2// RUN: grep objc_assign_ivar %t | count 63 4// PR138205// REQUIRES: LP646 7@interface I @end8 9typedef I TI;10typedef I* TPI;11 12typedef id ID;13 14@interface MyClass {15}16 17@property id property;18@property I* propertyI;19 20@property TI* propertyTI;21 22@property TPI propertyTPI;23 24@property ID propertyID;25@end26 27@implementation MyClass28	@synthesize property=_property;29        @synthesize propertyI;30        @synthesize propertyTI=_propertyTI;31        @synthesize propertyTPI=_propertyTPI;32         @synthesize propertyID = _propertyID;33@end34 35int main () {36    MyClass *myObj;37    myObj.property = 0;38    myObj.propertyI = 0;39    myObj.propertyTI = 0;40    myObj.propertyTPI = 0;41    myObj.propertyID = 0;42    return 0;43}44