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

commit r16-2651-gec7244e6e09654a2e720d60ceb0f24c6d66c44f7
Author: François Dumont <frs.dum...@gmail.com>
Date:   Tue Jul 29 06:32:52 2025 +0200

    libstdc++: Fix test when dual abi disabled
    
    When !_GLIBCXX_USE_DUAL_ABI the old COW std::string implementation is being 
used
    which do not generate the expected error diagnostics.
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/std/time/format/data_not_present_neg.cc: Remove 
_GLIBCXX_USE_DUAL_ABI
            check.
    
    Reviewed-by: Jonathan Wakely <jwak...@redhat.com>

Diff:
---
 libstdc++-v3/testsuite/std/time/format/data_not_present_neg.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libstdc++-v3/testsuite/std/time/format/data_not_present_neg.cc 
b/libstdc++-v3/testsuite/std/time/format/data_not_present_neg.cc
index bb09451dc29c..cb8f916f2166 100644
--- a/libstdc++-v3/testsuite/std/time/format/data_not_present_neg.cc
+++ b/libstdc++-v3/testsuite/std/time/format/data_not_present_neg.cc
@@ -119,7 +119,7 @@ auto tai = std::format("{:%Q}", tai_clock::now()); // { 
dg-error "call to conste
 auto file = std::format("{:%Q}", file_clock::now()); // { dg-error "call to 
consteval function" }
 
 const auto ltc = local_seconds(10s);
-#if _GLIBCXX_USE_CXX11_ABI || !_GLIBCXX_USE_DUAL_ABI
+#if _GLIBCXX_USE_CXX11_ABI
 const auto zt = zoned_time<seconds>("Europe/Sofia", local_seconds(10s));
 auto zt1 = std::format("{:%Q}", zt); // { dg-error "call to consteval 
function" "" { target cxx11_abi } }
 #endif
@@ -141,7 +141,7 @@ auto hms5 = std::format("{:%F}", HMS(1255s)); // { dg-error 
"call to consteval f
 auto hms6 = std::format("{:%Q}", HMS(1255s)); // { dg-error "call to consteval 
function" }
 auto hms7 = std::format("{:%Z}", HMS(1255s)); // { dg-error "call to consteval 
function" }
 
-#if _GLIBCXX_USE_CXX11_ABI || !_GLIBCXX_USE_DUAL_ABI
+#if _GLIBCXX_USE_CXX11_ABI
 auto li1 = std::format("{:%d}", local_info()); // { dg-error "call to 
consteval function" "" { target cxx11_abi } }
 auto li2 = std::format("{:%w}", local_info()); // { dg-error "call to 
consteval function" "" { target cxx11_abi } }
 auto li3 = std::format("{:%m}", local_info()); // { dg-error "call to 
consteval function" "" { target cxx11_abi } }

Reply via email to