]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: Fix module line no testcase
authorNathan Sidwell <nathan@acm.org>
Mon, 15 Aug 2022 14:19:36 +0000 (07:19 -0700)
committerNathan Sidwell <nathan@acm.org>
Mon, 15 Aug 2022 14:21:45 +0000 (07:21 -0700)
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

gcc/testsuite/g++.dg/modules/loc-prune-4.C

index 765c378e51e4e769401e1f6e83016f5a2edc5f0c..aa8f248b52bd135c4975c1f36dce873f34697cdb 100644 (file)
@@ -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 } }