From 898f333413d2ec9c446ab61fab303126ae5be4ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20SVENSSON?= Date: Wed, 18 Dec 2024 20:54:00 +0100 Subject: [PATCH] testsuite: arm: C++26 uses __equal() instead of operator==() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update test case to align with used function in C++26. gcc/testsuite/ChangeLog: * g++.dg/abi/arm_rtti1.C: Check for expected symbol in C++26. Signed-off-by: Torbjörn SVENSSON --- gcc/testsuite/g++.dg/abi/arm_rtti1.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/abi/arm_rtti1.C b/gcc/testsuite/g++.dg/abi/arm_rtti1.C index 74f00033d9a..5ebae26e670 100644 --- a/gcc/testsuite/g++.dg/abi/arm_rtti1.C +++ b/gcc/testsuite/g++.dg/abi/arm_rtti1.C @@ -2,7 +2,8 @@ // { dg-options "-O2" } // Check that, even when optimizing, we emit an out-of-line call to // the type-info comparison function. -// { dg-final { scan-assembler _ZNKSt9type_infoeqERKS_ } } +// { dg-final { scan-assembler _ZNKSt9type_infoeqERKS_ { target { ! c++26 } } } } +// { dg-final { scan-assembler _ZNKSt9type_info7__equalERKS_ { target { c++26 } } } } #include