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

commit r15-8984-gcdce6495a450cf9ab09495c64acd52f65910d723
Author: Marek Polacek <pola...@redhat.com>
Date:   Thu Mar 27 14:10:03 2025 -0400

    c++: fix g++.dg/tree-ssa/initlist-opt2.C
    
    This test needs the same fix as g++.dg/tree-ssa/initlist-opt1.C in
    r15-8934.
    
    gcc/testsuite/ChangeLog:
    
            * g++.dg/tree-ssa/initlist-opt2.C: Match _M_range_initialize_n
            instead of _M_range_initialize.

Diff:
---
 gcc/testsuite/g++.dg/tree-ssa/initlist-opt2.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/g++.dg/tree-ssa/initlist-opt2.C 
b/gcc/testsuite/g++.dg/tree-ssa/initlist-opt2.C
index 8080e9fbfbd6..bc9b6cf38679 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/initlist-opt2.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/initlist-opt2.C
@@ -4,7 +4,7 @@
 // { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 // Test that we do range-initialization from const char *.
-// { dg-final { scan-tree-dump {_M_range_initialize<const char\* const\*>} 
"gimple" } }
+// { dg-final { scan-tree-dump {_M_range_initialize_n<const char\* const\*} 
"gimple" } }
 // And that the backing array is static.
 // { dg-final { scan-tree-dump {static const char.*72} "gimple" } }

Reply via email to