Test on hppa64-hp-hpux11.11.  Committed to trunk.

Dave
---

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 --git a/gcc/testsuite/g++.dg/modules/clone-4_b.C 
b/gcc/testsuite/g++.dg/modules/clone-4_b.C
index 2b811b7537f..b5f90a1787f 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 } } } }

Attachment: signature.asc
Description: PGP signature

Reply via email to