From: Jonathan Wakely Date: Tue, 4 Oct 2022 16:23:45 +0000 (+0100) Subject: libstdc++: Fix test FAIL for old std::string ABI X-Git-Tag: basepoints/gcc-14~4139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5aa18176add650f481b3b9becbefce6d392cc049;p=thirdparty%2Fgcc.git libstdc++: Fix test FAIL for old std::string ABI libstdc++-v3/ChangeLog: * testsuite/std/ranges/adaptors/join_with/1.cc: Remove unused #include -#include -#include +#include #include #include @@ -73,7 +72,10 @@ test03() return true; } -constexpr bool +#if _GLIBCXX_USE_CXX11_ABI +constexpr +#endif +bool test04() { std::string rs[] = {"a", "", "b", "", "c"}; @@ -93,5 +95,9 @@ main() static_assert(test01()); static_assert(test02()); static_assert(test03()); +#if _GLIBCXX_USE_CXX11_ABI static_assert(test04()); +#else + VERIFY(test04()); +#endif }