summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/debug-info-blocks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/debug-info-blocks.cpp')
-rw-r--r--test/CodeGenCXX/debug-info-blocks.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/CodeGenCXX/debug-info-blocks.cpp b/test/CodeGenCXX/debug-info-blocks.cpp
index ed0d659eeae18..7eea3ce09649f 100644
--- a/test/CodeGenCXX/debug-info-blocks.cpp
+++ b/test/CodeGenCXX/debug-info-blocks.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 %s -debug-info-kind=line-tables-only -fblocks -S -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -debug-info-kind=line-directives-only -fblocks -S -emit-llvm -o - | FileCheck %s
struct A {
A();
@@ -8,11 +9,12 @@ struct A {
void test() {
__block A a;
+ ^{ (void)a; };
}
// CHECK: !DISubprogram(name: "__Block_byref_object_copy_",
-// CHECK-SAME: line: 10,
-// CHECK-SAME: isLocal: true, isDefinition: true
+// CHECK-SAME: line: 11,
+// CHECK-SAME: DISPFlagLocalToUnit | DISPFlagDefinition
// CHECK: !DISubprogram(name: "__Block_byref_object_dispose_",
-// CHECK-SAME: line: 10,
-// CHECK-SAME: isLocal: true, isDefinition: true
+// CHECK-SAME: line: 11,
+// CHECK-SAME: DISPFlagLocalToUnit | DISPFlagDefinition