[gcc r15-8934] c++: Fix FAIL: g++.dg/tree-ssa/initlist-opt1.C
Jonathan Wakely
redi@gcc.gnu.org
Wed Mar 26 17:56:04 GMT 2025
https://gcc.gnu.org/g:101f302363e8773958887e00750098b760a5b6bd
commit r15-8934-g101f302363e8773958887e00750098b760a5b6bd
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Mar 26 10:10:19 2025 +0000
c++: Fix FAIL: g++.dg/tree-ssa/initlist-opt1.C
My r15-8904-ge200f53a555651 changed the std::vector initializer-list
constructor so that it calls a new _M_range_initialize_n function
instead of _M_range_initialize. Change the scan-tree-dump pattern in
this g++.dg test to match the new gimple output.
gcc/testsuite/ChangeLog:
* g++.dg/tree-ssa/initlist-opt1.C: Match _M_range_initialize_n
instead of _M_range_initialize.
Diff:
---
gcc/testsuite/g++.dg/tree-ssa/initlist-opt1.C | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/g++.dg/tree-ssa/initlist-opt1.C b/gcc/testsuite/g++.dg/tree-ssa/initlist-opt1.C
index 89abdd90a82a..976c3f30b165 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/initlist-opt1.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/initlist-opt1.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" } }
// { dg-final { scan-tree-dump {static const char.*72} "gimple" } }
#include <string>
More information about the Gcc-cvs
mailing list