From: John David Anglin <[email protected]>

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.
---
 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 2b811b7537f49..b5f90a1787fb0 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 } } } }
-- 
2.54.0

Reply via email to