2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 %s -debug-info-kind=line-tables-only -fblocks -S -emit-llvm -o - | FileCheck %s
|
2018-08-31 21:56:14 +08:00
|
|
|
// RUN: %clang_cc1 %s -debug-info-kind=line-directives-only -fblocks -S -emit-llvm -o - | FileCheck %s
|
2012-10-25 18:18:50 +08:00
|
|
|
|
|
|
|
struct A {
|
|
|
|
A();
|
|
|
|
A(const A &);
|
|
|
|
~A();
|
|
|
|
};
|
|
|
|
|
|
|
|
void test() {
|
|
|
|
__block A a;
|
2018-10-02 05:51:28 +08:00
|
|
|
^{ (void)a; };
|
2012-10-25 18:18:50 +08:00
|
|
|
}
|
|
|
|
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: !DISubprogram(name: "__Block_byref_object_copy_",
|
2018-08-31 21:56:14 +08:00
|
|
|
// CHECK-SAME: line: 11,
|
2018-11-29 05:18:07 +08:00
|
|
|
// CHECK-SAME: DISPFlagLocalToUnit | DISPFlagDefinition
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: !DISubprogram(name: "__Block_byref_object_dispose_",
|
2018-08-31 21:56:14 +08:00
|
|
|
// CHECK-SAME: line: 11,
|
2018-11-29 05:18:07 +08:00
|
|
|
// CHECK-SAME: DISPFlagLocalToUnit | DISPFlagDefinition
|