1 // RUN: %clang_cc1 -x objective-c++ %s -triple x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s 2 // rdar://6137845 3 4 struct TCPPObject 5 { 6 TCPPObject(const TCPPObject& inObj); 7 TCPPObject(); 8 ~TCPPObject(); 9 int filler[64]; 10 }; 11 12 13 @interface MyDocument 14 { 15 @private 16 TCPPObject _cppObject; 17 } 18 @property (atomic, assign, readwrite) const TCPPObject& cppObject; 19 @end 20 21 @implementation MyDocument 22 23 @synthesize cppObject = _cppObject; 24 25 @end 26 27 // CHECK: [[cppObjectaddr:%.*]] = alloca %struct.TCPPObject*, align 8 28 // CHECK: store %struct.TCPPObject* [[cppObject:%.*]], %struct.TCPPObject** [[cppObjectaddr]], align 8 29 // CHECK: [[THREE:%.*]] = load %struct.TCPPObject*, %struct.TCPPObject** [[cppObjectaddr]], align 8 30 // CHECK: [[FOUR:%.*]] = bitcast %struct.TCPPObject* [[THREE]] to i8* 31 // CHECK: call void @objc_copyStruct(i8* [[TWO:%.*]], i8* [[FOUR]], i64 256, i1 zeroext true, i1 zeroext false) 32