blob: 7762726dc77fb61d648862565e6f90527c331af7 [file] [log] [blame]
Alexey Samsonov9b502e52012-10-25 10:18:50 +00001// RUN: %clang_cc1 %s -gline-tables-only -fblocks -S -emit-llvm -o - | FileCheck %s
2
3struct A {
4 A();
5 A(const A &);
6 ~A();
7};
8
9void test() {
10 __block A a;
11}
12
Duncan P. N. Exon Smith9dd4e4e2015-04-29 16:40:08 +000013// CHECK: !DISubprogram(name: "__Block_byref_object_copy_",
Duncan P. N. Exon Smithf04be1f2015-03-03 17:25:55 +000014// CHECK-SAME: line: 10,
15// CHECK-SAME: isLocal: true, isDefinition: true
Duncan P. N. Exon Smith9dd4e4e2015-04-29 16:40:08 +000016// CHECK: !DISubprogram(name: "__Block_byref_object_dispose_",
Duncan P. N. Exon Smithf04be1f2015-03-03 17:25:55 +000017// CHECK-SAME: line: 10,
18// CHECK-SAME: isLocal: true, isDefinition: true