diff options
Diffstat (limited to 'libcxx/test/support')
| -rw-r--r-- | libcxx/test/support/locale_helpers.h | 12 | ||||
| -rw-r--r-- | libcxx/test/support/test_basic_format_arg.h | 2 | ||||
| -rw-r--r-- | libcxx/test/support/test_macros.h | 7 | 
3 files changed, 13 insertions, 8 deletions
| diff --git a/libcxx/test/support/locale_helpers.h b/libcxx/test/support/locale_helpers.h index 946c2fe..3cec739 100644 --- a/libcxx/test/support/locale_helpers.h +++ b/libcxx/test/support/locale_helpers.h @@ -73,6 +73,12 @@ MultiStringType currency_symbol_ru_RU() {      return MKSTR("\u20BD"); // U+20BD RUBLE SIGN  #elif defined(_WIN32) || defined(__FreeBSD__) || defined(_AIX)    return MKSTR("\u20BD"); // U+20BD RUBLE SIGN +#elif defined(__APPLE__) +  if (__builtin_available(macOS 15.4, *)) { +    return MKSTR("\u20BD"); // U+20BD RUBLE SIGN +  } else { +    return MKSTR("\u0440\u0443\u0431."); +  }  #else    return MKSTR("\u0440\u0443\u0431.");  #endif @@ -81,6 +87,12 @@ MultiStringType currency_symbol_ru_RU() {  MultiStringType currency_symbol_zh_CN() {  #if defined(_WIN32)    return MKSTR("\u00A5"); // U+00A5 YEN SIGN +#elif defined(__APPLE__) +  if (__builtin_available(macOS 15.4, *)) { +    return MKSTR("\u00A5"); // U+00A5 YEN SIGN +  } else { +    return MKSTR("\uFFE5"); // U+FFE5 FULLWIDTH YEN SIGN +  }  #else    return MKSTR("\uFFE5"); // U+FFE5 FULLWIDTH YEN SIGN  #endif diff --git a/libcxx/test/support/test_basic_format_arg.h b/libcxx/test/support/test_basic_format_arg.h index f51f6e9..99cd558 100644 --- a/libcxx/test/support/test_basic_format_arg.h +++ b/libcxx/test/support/test_basic_format_arg.h @@ -21,7 +21,7 @@ bool test_basic_format_arg(std::basic_format_arg<Context> arg, T expected) {      else        return false;    }; -#if TEST_STD_VER >= 26 && defined(TEST_HAS_EXPLICIT_THIS_PARAMETER) +#if TEST_STD_VER >= 26    return arg.visit(std::move(visitor));  #else    return std::visit_format_arg(std::move(visitor), arg); diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h index c4e1600..8d88d6f 100644 --- a/libcxx/test/support/test_macros.h +++ b/libcxx/test/support/test_macros.h @@ -531,13 +531,6 @@ inline Tp const& DoNotOptimize(Tp const& value) {  #  define TEST_IF_AIX(arg_true, arg_false) arg_false  #endif -// Clang-18 has support for deducing this, but it does not set the FTM. -#ifdef _LIBCPP_USE_FROZEN_CXX03_HEADERS -// This is a C++20 featue, so we don't care whether the compiler could support it -#elif defined(_LIBCPP_VERSION) && _LIBCPP_HAS_EXPLICIT_THIS_PARAMETER -#  define TEST_HAS_EXPLICIT_THIS_PARAMETER -#endif -  // Placement `operator new`/`operator new[]` are not yet constexpr in C++26  // when using MS ABI, because they are from <vcruntime_new.h>.  #if defined(__cpp_lib_constexpr_new) && __cpp_lib_constexpr_new >= 202406L | 
