Author: Jake Egan Date: 2021-09-16T10:03:01-04:00 New Revision: 45a738363ee39754a0e93d9f779bda2cad83fa18
URL: https://github.com/llvm/llvm-project/commit/45a738363ee39754a0e93d9f779bda2cad83fa18 DIFF: https://github.com/llvm/llvm-project/commit/45a738363ee39754a0e93d9f779bda2cad83fa18.diff LOG: 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 Added: Modified: clang/test/Modules/ExtDebugInfo.cpp Removed: ################################################################################ diff --git a/clang/test/Modules/ExtDebugInfo.cpp b/clang/test/Modules/ExtDebugInfo.cpp index aff2953b4bb5..00754a90079b 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: _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits