xref: /llvm-project/clang/test/CodeGenCXX/copy-in-cplus-object.cpp (revision ea882cd92ee91803143632f4b597f1317113f80f)
1 // RUN: %clang_cc1 %s -fblocks -triple x86_64-apple-darwin -emit-llvm -o - | FileCheck %s
2 
3 struct TestObject
4 {
5 	TestObject(const TestObject& inObj, int def = 100);
6 	TestObject();
7 	TestObject& operator=(const TestObject& inObj);
8 	int version() const;
9 
10 };
11 
12 void testRoutine() {
13     TestObject one;
14     int (^V)() = ^{ return one.version(); };
15 }
16 
17 // CHECK: call void @_ZN10TestObjectC1ERKS_i
18 
19