1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm %s -o - | FileCheck %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc// This structure's size is not a power of two, so the property does 4*f4a2713aSLionel Sambuc// not get native atomics, even though x86-64 can do unaligned atomics 5*f4a2713aSLionel Sambuc// with a lock prefix. 6*f4a2713aSLionel Sambucstruct s3 { char c[3]; }; 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc// This structure's size is, so it does, because it can. 9*f4a2713aSLionel Sambuc// FIXME: But we don't at the moment; the backend doesn't know how to generate 10*f4a2713aSLionel Sambuc// correct code. 11*f4a2713aSLionel Sambucstruct s4 { char c[4]; }; 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambuc@interface Test0 14*f4a2713aSLionel Sambuc@property struct s3 s3; 15*f4a2713aSLionel Sambuc@property struct s4 s4; 16*f4a2713aSLionel Sambuc@end 17*f4a2713aSLionel Sambuc@implementation Test0 18*f4a2713aSLionel Sambuc@synthesize s3, s4; 19*f4a2713aSLionel Sambuc@end 20*f4a2713aSLionel Sambuc 21*f4a2713aSLionel Sambuc// CHECK: define internal i24 @"\01-[Test0 s3]"( 22*f4a2713aSLionel Sambuc// CHECK: call void @objc_copyStruct 23*f4a2713aSLionel Sambuc 24*f4a2713aSLionel Sambuc// CHECK: define internal void @"\01-[Test0 setS3:]"( 25*f4a2713aSLionel Sambuc// CHECK: call void @objc_copyStruct 26*f4a2713aSLionel Sambuc 27*f4a2713aSLionel Sambuc// CHECK: define internal i32 @"\01-[Test0 s4]"( 28*f4a2713aSLionel Sambuc// CHECK: call void @objc_copyStruct 29*f4a2713aSLionel Sambuc 30*f4a2713aSLionel Sambuc// CHECK: define internal void @"\01-[Test0 setS4:]"( 31*f4a2713aSLionel Sambuc// CHECK: call void @objc_copyStruct 32