diff options
author | François Dumont <frs.dumont@gmail.com> | 2025-07-29 06:32:52 +0200 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2025-07-30 21:16:31 +0200 |
commit | ec7244e6e09654a2e720d60ceb0f24c6d66c44f7 (patch) | |
tree | 3264adece08d8cd41ec0d54d0801db658eb9306e /libstdc++-v3/testsuite/std | |
parent | d7cd6b0df54a29e23adbf98e47965c217f6e0107 (diff) | |
download | gcc-ec7244e6e09654a2e720d60ceb0f24c6d66c44f7.zip gcc-ec7244e6e09654a2e720d60ceb0f24c6d66c44f7.tar.gz gcc-ec7244e6e09654a2e720d60ceb0f24c6d66c44f7.tar.bz2 |
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 <jwakely@redhat.com>
Diffstat (limited to 'libstdc++-v3/testsuite/std')
-rw-r--r-- | libstdc++-v3/testsuite/std/time/format/data_not_present_neg.cc | 4 |
1 files 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 bb09451..cb8f916 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 } } |