diff options
Diffstat (limited to 'test/CodeGen/debug-info-scope.c')
-rw-r--r-- | test/CodeGen/debug-info-scope.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/test/CodeGen/debug-info-scope.c b/test/CodeGen/debug-info-scope.c index aa6e5c1..a25f117 100644 --- a/test/CodeGen/debug-info-scope.c +++ b/test/CodeGen/debug-info-scope.c @@ -1,25 +1,19 @@ -// RUN: %clang_cc1 -g -emit-llvm < %s | FileCheck %s -// RUN: %clang_cc1 -gline-tables-only -emit-llvm < %s | FileCheck --check-prefix=GMLT %s +// RUN: %clang_cc1 -dwarf-version=4 -debug-info-kind=limited -disable-llvm-passes -emit-llvm < %s | FileCheck %s +// RUN: %clang_cc1 -dwarf-version=4 -debug-info-kind=line-tables-only -disable-llvm-passes -emit-llvm < %s | FileCheck --check-prefix=GMLT %s // Two variables with same name in separate scope. // Radar 8330217. int main() { int j = 0; int k = 0; -// CHECK: !DILocalVariable(tag: DW_TAG_auto_variable, name: "i" +// CHECK: !DILocalVariable(name: "i" // CHECK-NEXT: !DILexicalBlock( -// FIXME: Looks like we don't actually need both these lexical blocks (disc 2 -// just refers to disc 1, nothing actually uses disc 2). -// GMLT-NOT: !DILexicalBlock -// GMLT: !DILexicalBlockFile({{.*}}, discriminator: 2) -// GMLT-NOT: !DILexicalBlock -// GMLT: !DILexicalBlockFile({{.*}}, discriminator: 1) // Make sure we don't have any more lexical blocks because we don't need them in // -gmlt. // GMLT-NOT: !DILexicalBlock for (int i = 0; i < 10; i++) j++; -// CHECK: !DILocalVariable(tag: DW_TAG_auto_variable, name: "i" +// CHECK: !DILocalVariable(name: "i" // CHECK-NEXT: !DILexicalBlock( // GMLT-NOT: !DILexicalBlock for (int i = 0; i < 10; i++) |