]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: fix g++.dg/tree-ssa/initlist-opt2.C
authorMarek Polacek <polacek@redhat.com>
Thu, 27 Mar 2025 18:10:03 +0000 (14:10 -0400)
committerMarek Polacek <polacek@redhat.com>
Thu, 27 Mar 2025 18:10:20 +0000 (14:10 -0400)
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.

gcc/testsuite/g++.dg/tree-ssa/initlist-opt2.C

index 8080e9fbfbd62a0819aadc7e54c1f17381356cd1..bc9b6cf386790d10df31a188cd3c2326fb6761d0 100644 (file)
@@ -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" } }