From 45a738363ee39754a0e93d9f779bda2cad83fa18 Mon Sep 17 00:00:00 2001 From: Jake Egan Date: Thu, 16 Sep 2021 09:59:49 -0400 Subject: [PATCH] Increase expected line number for ExtDebugInfo.cpp This patch increases the expected line number for one of the checks so that it doesn't have to be updated for any added/removed lines in the RUN section. This change is in preparation for the following patch: https://reviews.llvm.org/D109060 Reviewed By: jsji Differential Revision: https://reviews.llvm.org/D109541 --- clang/test/Modules/ExtDebugInfo.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clang/test/Modules/ExtDebugInfo.cpp b/clang/test/Modules/ExtDebugInfo.cpp index aff2953..00754a9 100644 --- a/clang/test/Modules/ExtDebugInfo.cpp +++ b/clang/test/Modules/ExtDebugInfo.cpp @@ -24,6 +24,8 @@ @import DebugCXX; #endif +// Set the line number so that the LIT check expected line number doesn't have to be updated after adding/removing a line in the RUN section. +#line 50 using DebugCXX::Struct; Struct s; @@ -204,8 +206,7 @@ void foo() { // CHECK: ![[GLOBAL_ANON]] = !DICompositeType(tag: DW_TAG_structure_type, // CHECK-SAME: name: "InAnonymousNamespace", {{.*}}DIFlagFwdDecl) - -// CHECK: !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: !{{[0-9]+}}, entity: ![[STRUCT]], file: ![[CPP]], line: 27) +// CHECK: !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: !{{[0-9]+}}, entity: ![[STRUCT]], file: ![[CPP]], line: 50) // CHECK: !DICompileUnit( // CHECK-SAME: splitDebugFilename: -- 2.7.4