1 // RUN: %clang_cc1 %s -emit-llvm -fobjc-runtime=macosx-10.6.0 -triple x86_64-apple-macosx10.6.0 -o - | FileCheck %s
4 // void objc_setProperty_nonatomic(id self, SEL _cmd, id newValue, ptrdiff_t offset);
5 // objc_setProperty(..., NO, NO)
6 @property (nonatomic, retain) id nonatomicProperty;
8 // void objc_setProperty_nonatomic_copy(id self, SEL _cmd, id newValue, ptrdiff_t offset);
9 // objc_setProperty(..., NO, YES)
10 @property (nonatomic, copy) id nonatomicPropertyCopy;
12 // void objc_setProperty_atomic(id self, SEL _cmd, id newValue, ptrdiff_t offset);
13 // objc_setProperty(..., YES, NO)
14 @property (retain) id atomicProperty;
16 // void objc_setProperty_atomic_copy(id self, SEL _cmd, id newValue, ptrdiff_t offset);
17 // objc_setProperty(..., YES, YES)
18 @property (copy) id atomicPropertyCopy;
22 @synthesize nonatomicProperty;
23 @synthesize nonatomicPropertyCopy;
24 @synthesize atomicProperty;
25 @synthesize atomicPropertyCopy;
28 // CHECK-NOT: call void @objc_setProperty_nonatomic
29 // CHECK-NOT: call void @objc_setProperty_nonatomic_copy
30 // CHECK-NOT: call void @objc_setProperty_atomic
31 // CHECK-NOT: call void @objc_setProperty_atomic_copy