https://gcc.gnu.org/g:f3d6809d5907928064dafefa46fc3779e7992cf2

commit r17-5125-gf3d6809d5907928064dafefa46fc3779e7992cf2
Author: Iain Sandoe <[email protected]>
Date:   Tue Oct 13 14:39:01 2026 +0100

    testsuite,c++,Darwin: Allow for linker-visible source loc labels [PR126723].
    
    The change to allow linker-visible symbols for source locations needs to be
    reflected in scan-asm matches in the modules tests.
    
            PR target/126723
    
    gcc/testsuite/ChangeLog:
    
            * g++.dg/modules/src-loc-1_a.H: Allow linker-visible source
            location symbols on Darwin.
            * g++.dg/modules/src-loc-1_c.C: Likewise.
    
    Signed-off-by: Iain Sandoe <[email protected]>

Diff:
---
 gcc/testsuite/g++.dg/modules/src-loc-1_a.H | 2 +-
 gcc/testsuite/g++.dg/modules/src-loc-1_c.C | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/g++.dg/modules/src-loc-1_a.H 
b/gcc/testsuite/g++.dg/modules/src-loc-1_a.H
index 21c92ed4f83c..794552e726f4 100644
--- a/gcc/testsuite/g++.dg/modules/src-loc-1_a.H
+++ b/gcc/testsuite/g++.dg/modules/src-loc-1_a.H
@@ -4,4 +4,4 @@
 
 #include "src-loc-1.h"
 
-// { dg-final { scan-lang-dump {Written:-[0-9]* internal 
identifier:[^\n\r]*Lsrc_loc} module } }
+// { dg-final { scan-lang-dump {Written:-[0-9]* internal 
identifier:[^\n\r]*[lL]src_loc} module } }
diff --git a/gcc/testsuite/g++.dg/modules/src-loc-1_c.C 
b/gcc/testsuite/g++.dg/modules/src-loc-1_c.C
index 6b62fd965241..c74fb5782a36 100644
--- a/gcc/testsuite/g++.dg/modules/src-loc-1_c.C
+++ b/gcc/testsuite/g++.dg/modules/src-loc-1_c.C
@@ -13,4 +13,4 @@ int main() {
     __builtin_abort();
 }
 
-// { dg-final { scan-lang-dump {Read internal identifier:-[0-9]* 
[^\n\r]*Lsrc_loc} module } }
+// { dg-final { scan-lang-dump {Read internal identifier:-[0-9]* 
[^\n\r]*[lL]src_loc} module } }

Reply via email to