1 // RUN: %clang_cc1 %s -emit-llvm -triple x86_64-apple-macosx10.8.0 -o - | FileCheck %s 2 // rdar://10179974 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