1 // RUN: %clang_cc1 -x objective-c++ %s -triple x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
5 TCPPObject(const TCPPObject& inObj);
15 TCPPObject _cppObject;
17 @property (atomic, assign, readwrite) const TCPPObject& cppObject;
20 @implementation MyDocument
22 @synthesize cppObject = _cppObject;
26 // CHECK: [[cppObjectaddr:%cppObject.addr]] = alloca ptr, align 8
27 // CHECK: store ptr [[cppObject:%.*]], ptr [[cppObjectaddr]], align 8
28 // CHECK: [[THREE:%.*]] = load ptr, ptr [[cppObjectaddr]], align 8
29 // CHECK: call void @objc_copyStruct(ptr noundef [[TWO:%.*]], ptr noundef [[THREE]], i64 noundef 256, i1 noundef zeroext true, i1 noundef zeroext false)