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