aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Egan <Jake.Egan@ibm.com>2021-09-16 09:59:49 -0400
committerJake Egan <Jake.Egan@ibm.com>2021-09-16 10:03:01 -0400
commit45a738363ee39754a0e93d9f779bda2cad83fa18 (patch)
tree0a2a5717df62e840322fd2bf657734becce0424f
parenta773db7d76222ccf4365979e01dd582fd2b5b3df (diff)
downloadllvm-45a738363ee39754a0e93d9f779bda2cad83fa18.zip
llvm-45a738363ee39754a0e93d9f779bda2cad83fa18.tar.gz
llvm-45a738363ee39754a0e93d9f779bda2cad83fa18.tar.bz2
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
-rw-r--r--clang/test/Modules/ExtDebugInfo.cpp5
1 files 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: