blob: 6dcb1285faffbebd9725ebd013d82a077da5da35 [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
3struct TestObject
4{
5 TestObject(const TestObject& inObj);
6 TestObject();
7 TestObject& operator=(const TestObject& inObj);
8 int version() const;
9
10};
11
12void testRoutine() {
13 TestObject one;
14 int (^V)() = ^{ return one.version(); };
15}
16
17// CHECK: call void @_ZN10TestObjectC1ERKS_
18