aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2022-08-15 07:19:36 -0700
committerNathan Sidwell <nathan@acm.org>2022-08-15 07:21:45 -0700
commitd2d189985d1f9fa09802c4a14856d442786f4bf8 (patch)
treec1c938a940d7d04f94a7d19af756c1444d6b2cd1 /gcc
parentae3459cd5956fcd29e8aa5408efb707cb7d9b14f (diff)
downloadgcc-d2d189985d1f9fa09802c4a14856d442786f4bf8.zip
gcc-d2d189985d1f9fa09802c4a14856d442786f4bf8.tar.gz
gcc-d2d189985d1f9fa09802c4a14856d442786f4bf8.tar.bz2
c++: Fix module line no testcase
Not all systems have the same injected headers, leading to line location table differences that are immaterial to the test. Fix the regexp more robustly. gcc/testsuite/ * g++.dg/modules/loc-prune-4.C: Adjust regexp
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.dg/modules/loc-prune-4.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.dg/modules/loc-prune-4.C b/gcc/testsuite/g++.dg/modules/loc-prune-4.C
index 765c378..aa8f248 100644
--- a/gcc/testsuite/g++.dg/modules/loc-prune-4.C
+++ b/gcc/testsuite/g++.dg/modules/loc-prune-4.C
@@ -18,5 +18,5 @@ int baz (int);
// { dg-final { scan-lang-dump {Ordinary maps:2 locs:12288 range_bits:5} module } }
// { dg-final { scan-lang-dump { 1 source file names\n Source file...=[^\n]*loc-prune-4.C\n} module } }
-// { dg-final { scan-lang-dump { Span:0 ordinary \[2.....\+12288,\+4096\)->\[0,\+4096\)} module } }
-// { dg-final { scan-lang-dump { Span:1 ordinary \[2.....\+40960,\+8192\)->\[4096,\+8192\)} module } }
+// { dg-final { scan-lang-dump { Span:0 ordinary \[[0-9]+\+12288,\+4096\)->\[0,\+4096\)} module } }
+// { dg-final { scan-lang-dump { Span:1 ordinary \[[0-9]+\+40960,\+8192\)->\[4096,\+8192\)} module } }