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

commit r17-5307-gd3b6ce0fba590a5650a53df668fd7b9ca09fd4b2
Author: John David Anglin <[email protected]>
Date:   Sun Oct 18 14:55:46 2026 -0400

    testsuite: Fix g++.dg/modules/clone-4_b.C on hppa64-hp-hpux11.11
    
    On hppa64-hp-hpux11.11 using gas, -fdeclone-ctor-dtor produces the
    unified complete-object clone (C4) rather than the base clone (C2),
    making the regular expression widening necessary.
    
    2026-10-18  John David Anglin  <[email protected]>
    
    gcc/testsuite/ChangeLog:
    
            * g++.dg/modules/clone-4_b.C: Update scan-assembler pattern to
            match either C2 or C4 constructor symbols to fix test failure
            on hppa64-hp-hpux11.11 when using the GNU assembler.

Diff:
---
 gcc/testsuite/g++.dg/modules/clone-4_b.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/g++.dg/modules/clone-4_b.C 
b/gcc/testsuite/g++.dg/modules/clone-4_b.C
index 2b811b7537f4..b5f90a1787fb 100644
--- a/gcc/testsuite/g++.dg/modules/clone-4_b.C
+++ b/gcc/testsuite/g++.dg/modules/clone-4_b.C
@@ -9,5 +9,5 @@ int main() {
 }
 
 // { dg-final { scan-assembler-not {_?_ZNW1M12__shared_ptrIiEC[1-4]Ev:} } }
-// { dg-final { scan-assembler {_?_ZNW1M12__shared_ptrIdEC2Ev:} { target alias 
} } }
+// { dg-final { scan-assembler {_?_ZNW1M12__shared_ptrIdEC[24]Ev:} { target 
alias } } }
 // { dg-final { scan-assembler {_?_ZNW1M12__shared_ptrIdEC1Ev:} { target { ! 
alias } } } }

Reply via email to