Home | History | Annotate | Download | only in CodeGenObjC
      1 // RUN: %clang_cc1 %s -emit-llvm -fobjc-runtime=ios-6.0.0 -triple thumbv7-apple-ios6.0.0 -o - | FileCheck %s
      2 // rdar://11915017
      3 
      4 @interface I
      5 // void objc_setProperty_nonatomic(id self, SEL _cmd, id newValue, ptrdiff_t offset);
      6 // objc_setProperty(..., NO, NO) 
      7 @property (nonatomic, retain) id nonatomicProperty;
      8 
      9 // void objc_setProperty_nonatomic_copy(id self, SEL _cmd, id newValue, ptrdiff_t offset);
     10 // objc_setProperty(..., NO, YES)
     11 @property (nonatomic, copy) id nonatomicPropertyCopy;
     12 
     13 // void objc_setProperty_atomic(id self, SEL _cmd, id newValue, ptrdiff_t offset);
     14 // objc_setProperty(..., YES, NO)
     15 @property (retain) id atomicProperty;
     16 
     17 // void objc_setProperty_atomic_copy(id self, SEL _cmd, id newValue, ptrdiff_t offset);
     18 // objc_setProperty(..., YES, YES)
     19 @property (copy) id atomicPropertyCopy;
     20 @end
     21 
     22 @implementation I
     23 @synthesize nonatomicProperty;
     24 @synthesize nonatomicPropertyCopy;
     25 @synthesize atomicProperty;
     26 @synthesize atomicPropertyCopy;
     27 @end
     28 
     29 // CHECK: call void @objc_setProperty_nonatomic
     30 // CHECK: call void @objc_setProperty_nonatomic_copy
     31 // CHECK: call void @objc_setProperty_atomic
     32 // CHECK: call void @objc_setProperty_atomic_copy
     33 
     34