copy-in-cplus-object.cpp revision d7c7338dd7bf1a35179ec3521f7438c0fbd98e9c
1// RUN: %clang_cc1 %s -fblocks -triple x86_64-apple-darwin -emit-llvm -o - | FileCheck %s
2
3struct S {
4  S(const char *);
5  ~S();
6};
7
8struct TestObject
9{
10	TestObject(const TestObject& inObj, int def = 100,  const S &Silly = "silly");
11	TestObject();
12	TestObject& operator=(const TestObject& inObj);
13	int version() const;
14
15};
16
17void testRoutine() {
18    TestObject one;
19    int (^V)() = ^{ return one.version(); };
20}
21
22// CHECK: call void @_ZN10TestObjectC1Ev
23// CHECK: call void @_ZN1SC1EPKc
24// CHECK: call void @_ZN10TestObjectC1ERKS_iRK1S
25// CHECK: call void @_ZN1SD1Ev
26
27