blob: cac6155f5cf1b7967ebab4a49a122ffa64e1f4a2 [file] [log] [blame]
Fariborz Jahaniandf8b8ea2010-06-04 16:10:00 +00001// RUN: %clang_cc1 %s -fblocks -triple x86_64-apple-darwin -emit-llvm -o - | FileCheck %s
2
Fariborz Jahaniand7c73382010-06-08 17:52:11 +00003struct S {
4 S(const char *);
5 ~S();
6};
7
Fariborz Jahaniandf8b8ea2010-06-04 16:10:00 +00008struct TestObject
9{
Fariborz Jahaniand7c73382010-06-08 17:52:11 +000010 TestObject(const TestObject& inObj, int def = 100, const S &Silly = "silly");
Fariborz Jahaniandf8b8ea2010-06-04 16:10:00 +000011 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
Fariborz Jahaniand7c73382010-06-08 17:52:11 +000022// CHECK: call void @_ZN10TestObjectC1Ev
23// CHECK: call void @_ZN1SC1EPKc
24// CHECK: call void @_ZN10TestObjectC1ERKS_iRK1S
25// CHECK: call void @_ZN1SD1Ev
Fariborz Jahaniandf8b8ea2010-06-04 16:10:00 +000026