1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 %s -emit-llvm -fobjc-runtime=macosx-10.6.0 -triple x86_64-apple-macosx10.6.0 -o - | FileCheck %s 2*f4a2713aSLionel Sambuc// rdar://11858187 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc@interface I 5*f4a2713aSLionel Sambuc// void objc_setProperty_nonatomic(id self, SEL _cmd, id newValue, ptrdiff_t offset); 6*f4a2713aSLionel Sambuc// objc_setProperty(..., NO, NO) 7*f4a2713aSLionel Sambuc@property (nonatomic, retain) id nonatomicProperty; 8*f4a2713aSLionel Sambuc 9*f4a2713aSLionel Sambuc// void objc_setProperty_nonatomic_copy(id self, SEL _cmd, id newValue, ptrdiff_t offset); 10*f4a2713aSLionel Sambuc// objc_setProperty(..., NO, YES) 11*f4a2713aSLionel Sambuc@property (nonatomic, copy) id nonatomicPropertyCopy; 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambuc// void objc_setProperty_atomic(id self, SEL _cmd, id newValue, ptrdiff_t offset); 14*f4a2713aSLionel Sambuc// objc_setProperty(..., YES, NO) 15*f4a2713aSLionel Sambuc@property (retain) id atomicProperty; 16*f4a2713aSLionel Sambuc 17*f4a2713aSLionel Sambuc// void objc_setProperty_atomic_copy(id self, SEL _cmd, id newValue, ptrdiff_t offset); 18*f4a2713aSLionel Sambuc// objc_setProperty(..., YES, YES) 19*f4a2713aSLionel Sambuc@property (copy) id atomicPropertyCopy; 20*f4a2713aSLionel Sambuc@end 21*f4a2713aSLionel Sambuc 22*f4a2713aSLionel Sambuc@implementation I 23*f4a2713aSLionel Sambuc@synthesize nonatomicProperty; 24*f4a2713aSLionel Sambuc@synthesize nonatomicPropertyCopy; 25*f4a2713aSLionel Sambuc@synthesize atomicProperty; 26*f4a2713aSLionel Sambuc@synthesize atomicPropertyCopy; 27*f4a2713aSLionel Sambuc@end 28*f4a2713aSLionel Sambuc 29*f4a2713aSLionel Sambuc// CHECK-NOT: call void @objc_setProperty_nonatomic 30*f4a2713aSLionel Sambuc// CHECK-NOT: call void @objc_setProperty_nonatomic_copy 31*f4a2713aSLionel Sambuc// CHECK-NOT: call void @objc_setProperty_atomic 32*f4a2713aSLionel Sambuc// CHECK-NOT: call void @objc_setProperty_atomic_copy 33