summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/debug-info-line.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/debug-info-line.c')
-rw-r--r--clang/test/CodeGen/debug-info-line.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/clang/test/CodeGen/debug-info-line.c b/clang/test/CodeGen/debug-info-line.c
index 9e6e9714aa4..b255d90b34c 100644
--- a/clang/test/CodeGen/debug-info-line.c
+++ b/clang/test/CodeGen/debug-info-line.c
@@ -1,9 +1,8 @@
-// RUN: %clang -emit-llvm -S -g %s -o - | FileCheck %s
+// RUN: %clang -emit-llvm -S -g %s -o %t
+// RUN: grep DW_TAG_lexical_block %t | count 3
// Radar 8396182
-// There is only one lexical block, but we need a DILexicalBlock and two
-// DILexicalBlockFile to correctly represent file info. This means we have
-// two lexical blocks shown as the latter is also tagged as a lexical block.
+// There are three lexical blocks in this test case.
int foo() {
int i = 1;
@@ -14,10 +13,3 @@ int foo() {
# 5 "m.c" 2
return i + j;
}
-
-// CHECK: DW_TAG_lexical_block
-// CHECK: DW_TAG_lexical_block
-// CHECK: !"m.h"
-// CHECK: DW_TAG_lexical_block
-// CHECK: !"m.c"
-// CHECK-NOT: DW_TAG_lexical_block
OpenPOWER on IntegriCloud