diff --git a/libcxx/include/__config b/libcxx/include/__config --- a/libcxx/include/__config +++ b/libcxx/include/__config @@ -201,8 +201,6 @@ # define _LIBCPP_COMPILER_GCC #elif defined(_MSC_VER) # define _LIBCPP_COMPILER_MSVC -#elif defined(__IBMCPP__) -# define _LIBCPP_COMPILER_IBM #endif #if defined(_LIBCPP_COMPILER_GCC) && __cplusplus < 201103L @@ -506,28 +504,7 @@ #define _LIBCPP_DISABLE_EXTENSION_WARNING -#elif defined(_LIBCPP_COMPILER_IBM) - -#define _ALIGNAS(x) __attribute__((__aligned__(x))) -#define _ALIGNAS_TYPE(x) __attribute__((__aligned__(_LIBCPP_ALIGNOF(x)))) -#define _ATTRIBUTE(x) __attribute__((x)) -#define _LIBCPP_NORETURN __attribute__((noreturn)) - -#define _LIBCPP_HAS_NO_UNICODE_CHARS - -#if defined(_AIX) -#define __MULTILOCALE_API -#endif - -#define _LIBCPP_HAS_NO_ASAN - -#define _LIBCPP_ALWAYS_INLINE __attribute__ ((__always_inline__)) - -#define _LIBCPP_HAS_NO_VECTOR_EXTENSION - -#define _LIBCPP_DISABLE_EXTENSION_WARNING - -#endif // _LIBCPP_COMPILER_[CLANG|GCC|MSVC|IBM] +#endif // _LIBCPP_COMPILER_[CLANG|GCC|MSVC] #if defined(_LIBCPP_OBJECT_FORMAT_COFF) @@ -741,11 +718,6 @@ # define _NOEXCEPT_(x) #endif -#ifdef _LIBCPP_HAS_NO_UNICODE_CHARS -typedef unsigned short char16_t; -typedef unsigned int char32_t; -#endif - #ifndef __SIZEOF_INT128__ #define _LIBCPP_HAS_NO_INT128 #endif diff --git a/libcxx/include/__functional/hash.h b/libcxx/include/__functional/hash.h --- a/libcxx/include/__functional/hash.h +++ b/libcxx/include/__functional/hash.h @@ -525,8 +525,6 @@ }; #endif // !_LIBCPP_HAS_NO_CHAR8_T -#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS - _LIBCPP_SUPPRESS_DEPRECATED_PUSH template <> struct _LIBCPP_TEMPLATE_VIS hash @@ -559,8 +557,6 @@ size_t operator()(char32_t __v) const _NOEXCEPT {return static_cast(__v);} }; -#endif // _LIBCPP_HAS_NO_UNICODE_CHARS - #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS _LIBCPP_SUPPRESS_DEPRECATED_PUSH template <> diff --git a/libcxx/include/__string/char_traits.h b/libcxx/include/__string/char_traits.h --- a/libcxx/include/__string/char_traits.h +++ b/libcxx/include/__string/char_traits.h @@ -516,8 +516,6 @@ #endif // _LIBCPP_HAS_NO_CHAR8_T -#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS - template <> struct _LIBCPP_TEMPLATE_VIS char_traits { @@ -698,8 +696,6 @@ return nullptr; } -#endif // _LIBCPP_HAS_NO_UNICODE_CHARS - // helper fns for basic_string and string_view // __str_find diff --git a/libcxx/include/__type_traits/is_integral.h b/libcxx/include/__type_traits/is_integral.h --- a/libcxx/include/__type_traits/is_integral.h +++ b/libcxx/include/__type_traits/is_integral.h @@ -30,10 +30,8 @@ #ifndef _LIBCPP_HAS_NO_CHAR8_T template <> struct __libcpp_is_integral { enum { value = 1 }; }; #endif -#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS template <> struct __libcpp_is_integral { enum { value = 1 }; }; template <> struct __libcpp_is_integral { enum { value = 1 }; }; -#endif template <> struct __libcpp_is_integral { enum { value = 1 }; }; template <> struct __libcpp_is_integral { enum { value = 1 }; }; template <> struct __libcpp_is_integral { enum { value = 1 }; }; diff --git a/libcxx/include/__utility/cmp.h b/libcxx/include/__utility/cmp.h --- a/libcxx/include/__utility/cmp.h +++ b/libcxx/include/__utility/cmp.h @@ -30,13 +30,10 @@ template concept __is_safe_integral_cmp = is_integral_v<_Tp> && - !_IsSameAsAny<_Tp, bool, char + !_IsSameAsAny<_Tp, bool, char, char16_t, char32_t #ifndef _LIBCPP_HAS_NO_CHAR8_T , char8_t #endif -#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS - , char16_t, char32_t -#endif #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS , wchar_t #endif diff --git a/libcxx/include/iosfwd b/libcxx/include/iosfwd --- a/libcxx/include/iosfwd +++ b/libcxx/include/iosfwd @@ -232,10 +232,8 @@ #ifndef _LIBCPP_HAS_NO_CHAR8_T typedef fpos u8streampos; #endif -#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS typedef fpos u16streampos; typedef fpos u32streampos; -#endif #if defined(_NEWLIB_VERSION) // On newlib, off_t is 'long int' diff --git a/libcxx/include/string b/libcxx/include/string --- a/libcxx/include/string +++ b/libcxx/include/string @@ -540,6 +540,7 @@ #include <__utility/unreachable.h> #include #include +#include #include // EOF #include #include @@ -557,10 +558,6 @@ # include #endif -#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS -# include -#endif - #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header #endif @@ -621,11 +618,8 @@ #ifndef _LIBCPP_HAS_NO_CHAR8_T typedef basic_string u8string; #endif - -#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS typedef basic_string u16string; typedef basic_string u32string; -#endif struct __uninitialized_size_tag {}; @@ -635,10 +629,8 @@ #ifndef _LIBCPP_HAS_NO_CHAR8_T _LIBCPP_PREFERRED_NAME(u8string) #endif -#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS _LIBCPP_PREFERRED_NAME(u16string) _LIBCPP_PREFERRED_NAME(u32string) -#endif basic_string { public: diff --git a/libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp b/libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp --- a/libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp +++ b/libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp @@ -34,12 +34,10 @@ assert(wstr.max_size() == std::numeric_limits::max() / sizeof(wchar_t) - alignment); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS std::u16string u16str; std::u32string u32str; assert(u16str.max_size() == std::numeric_limits::max() / 2 - alignment); assert(u32str.max_size() == std::numeric_limits::max() / 4 - alignment); -#endif } void half_size() { @@ -56,12 +54,10 @@ assert(wstr.max_size() == std::numeric_limits::max() / std::max(2ul, sizeof(wchar_t)) - alignment); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS std::u16string u16str; std::u32string u32str; assert(u16str.max_size() == std::numeric_limits::max() / 2 - alignment); assert(u32str.max_size() == std::numeric_limits::max() / 4 - alignment); -#endif } bool test() { diff --git a/libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string.pass.cpp b/libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string.pass.cpp --- a/libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string.pass.cpp +++ b/libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string.pass.cpp @@ -340,10 +340,8 @@ #ifndef _LIBCPP_HAS_NO_CHAR8_T test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif return true; } diff --git a/libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string_non_unicode.pass.cpp b/libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string_non_unicode.pass.cpp --- a/libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string_non_unicode.pass.cpp +++ b/libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string_non_unicode.pass.cpp @@ -96,10 +96,8 @@ #ifndef _LIBCPP_HAS_NO_CHAR8_T test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif return true; } diff --git a/libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string_unicode.pass.cpp b/libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string_unicode.pass.cpp --- a/libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string_unicode.pass.cpp +++ b/libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string_unicode.pass.cpp @@ -253,10 +253,8 @@ #ifndef _LIBCPP_HAS_NO_CHAR8_T test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif return true; } diff --git a/libcxx/test/std/atomics/atomics.types.generic/integral.pass.cpp b/libcxx/test/std/atomics/atomics.types.generic/integral.pass.cpp --- a/libcxx/test/std/atomics/atomics.types.generic/integral.pass.cpp +++ b/libcxx/test/std/atomics/atomics.types.generic/integral.pass.cpp @@ -177,10 +177,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif #ifndef TEST_HAS_NO_WIDE_CHARACTERS test(); #endif @@ -205,10 +203,8 @@ test(); test(); test(); -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif #ifndef TEST_HAS_NO_WIDE_CHARACTERS test(); #endif diff --git a/libcxx/test/std/atomics/atomics.types.generic/integral_typedefs.pass.cpp b/libcxx/test/std/atomics/atomics.types.generic/integral_typedefs.pass.cpp --- a/libcxx/test/std/atomics/atomics.types.generic/integral_typedefs.pass.cpp +++ b/libcxx/test/std/atomics/atomics.types.generic/integral_typedefs.pass.cpp @@ -60,10 +60,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) static_assert((std::is_same, std::atomic_char8_t>::value), ""); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS static_assert((std::is_same, std::atomic_char16_t>::value), ""); static_assert((std::is_same, std::atomic_char32_t>::value), ""); -#endif // Added by LWG 2441 static_assert((std::is_same, std::atomic_intptr_t>::value), ""); diff --git a/libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable.compile.pass.cpp b/libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable.compile.pass.cpp --- a/libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable.compile.pass.cpp +++ b/libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable.compile.pass.cpp @@ -29,10 +29,8 @@ #ifndef TEST_HAS_NO_CHAR8_T static_assert(std::three_way_comparable); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS static_assert(std::three_way_comparable); static_assert(std::three_way_comparable); -#endif #ifndef TEST_HAS_NO_INT128 static_assert(std::three_way_comparable<__int128_t const&>); static_assert(std::three_way_comparable<__uint128_t const&>); diff --git a/libcxx/test/std/language.support/support.limits/limits/is_specialized.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/is_specialized.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/is_specialized.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/is_specialized.pass.cpp @@ -49,10 +49,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/denorm_min.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/denorm_min.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/denorm_min.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/denorm_min.pass.cpp @@ -36,10 +36,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(0); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(0); test(0); -#endif test(0); test(0); test(0); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits.pass.cpp @@ -35,10 +35,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits10.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits10.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits10.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits10.pass.cpp @@ -39,10 +39,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/epsilon.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/epsilon.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/epsilon.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/epsilon.pass.cpp @@ -36,10 +36,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(0); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(0); test(0); -#endif test(0); test(0); test(0); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_denorm.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_denorm.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_denorm.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_denorm.pass.cpp @@ -34,10 +34,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_denorm_loss.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_denorm_loss.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_denorm_loss.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_denorm_loss.pass.cpp @@ -34,10 +34,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_infinity.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_infinity.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_infinity.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_infinity.pass.cpp @@ -34,10 +34,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_quiet_NaN.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_quiet_NaN.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_quiet_NaN.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_quiet_NaN.pass.cpp @@ -34,10 +34,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_signaling_NaN.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_signaling_NaN.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_signaling_NaN.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/has_signaling_NaN.pass.cpp @@ -34,10 +34,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/infinity.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/infinity.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/infinity.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/infinity.pass.cpp @@ -38,10 +38,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(0); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(0); test(0); -#endif test(0); test(0); test(0); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_bounded.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_bounded.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_bounded.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_bounded.pass.cpp @@ -34,10 +34,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_exact.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_exact.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_exact.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_exact.pass.cpp @@ -34,10 +34,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_iec559.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_iec559.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_iec559.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_iec559.pass.cpp @@ -34,10 +34,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_integer.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_integer.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_integer.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_integer.pass.cpp @@ -34,10 +34,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_modulo.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_modulo.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_modulo.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_modulo.pass.cpp @@ -34,10 +34,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_signed.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_signed.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_signed.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/is_signed.pass.cpp @@ -34,10 +34,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/lowest.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/lowest.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/lowest.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/lowest.pass.cpp @@ -47,10 +47,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(0); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(0); test(0); -#endif test(SHRT_MIN); test(0); test(INT_MIN); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max.pass.cpp @@ -47,10 +47,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(UCHAR_MAX); // ?? #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(USHRT_MAX); test(UINT_MAX); -#endif test(SHRT_MAX); test(USHRT_MAX); test(INT_MAX); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_digits10.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_digits10.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_digits10.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_digits10.pass.cpp @@ -35,10 +35,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_exponent.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_exponent.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_exponent.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_exponent.pass.cpp @@ -35,10 +35,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_exponent10.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_exponent10.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_exponent10.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/max_exponent10.pass.cpp @@ -35,10 +35,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min.pass.cpp @@ -47,10 +47,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(0); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(0); test(0); -#endif test(SHRT_MIN); test(0); test(INT_MIN); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min_exponent.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min_exponent.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min_exponent.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min_exponent.pass.cpp @@ -35,10 +35,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min_exponent10.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min_exponent10.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min_exponent10.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/min_exponent10.pass.cpp @@ -35,10 +35,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/quiet_NaN.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/quiet_NaN.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/quiet_NaN.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/quiet_NaN.pass.cpp @@ -55,10 +55,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/radix.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/radix.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/radix.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/radix.pass.cpp @@ -35,10 +35,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/round_error.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/round_error.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/round_error.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/round_error.pass.cpp @@ -36,10 +36,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(0); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(0); test(0); -#endif test(0); test(0); test(0); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/round_style.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/round_style.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/round_style.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/round_style.pass.cpp @@ -34,10 +34,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/signaling_NaN.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/signaling_NaN.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/signaling_NaN.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/signaling_NaN.pass.cpp @@ -55,10 +55,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif // TEST_HAS_NO_UNICODE_CHARS test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/tinyness_before.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/tinyness_before.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/tinyness_before.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/tinyness_before.pass.cpp @@ -34,10 +34,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/traps.pass.cpp b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/traps.pass.cpp --- a/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/traps.pass.cpp +++ b/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/traps.pass.cpp @@ -41,10 +41,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif test(); test(); test(); diff --git a/libcxx/test/std/strings/basic.string.hash/enabled_hashes.pass.cpp b/libcxx/test/std/strings/basic.string.hash/enabled_hashes.pass.cpp --- a/libcxx/test/std/strings/basic.string.hash/enabled_hashes.pass.cpp +++ b/libcxx/test/std/strings/basic.string.hash/enabled_hashes.pass.cpp @@ -29,10 +29,8 @@ #if defined(__cpp_lib_char8_t) && __cpp_lib_char8_t >= 201811L test_hash_enabled_for_type(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test_hash_enabled_for_type(); test_hash_enabled_for_type(); -#endif } return 0; diff --git a/libcxx/test/std/strings/basic.string.hash/strings.pass.cpp b/libcxx/test/std/strings/basic.string.hash/strings.pass.cpp --- a/libcxx/test/std/strings/basic.string.hash/strings.pass.cpp +++ b/libcxx/test/std/strings/basic.string.hash/strings.pass.cpp @@ -46,10 +46,8 @@ #if defined(__cpp_lib_char8_t) && __cpp_lib_char8_t >= 201811L test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif #ifndef TEST_HAS_NO_WIDE_CHARACTERS test(); #endif diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/assign2.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/assign2.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/assign2.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/assign2.pass.cpp @@ -29,7 +29,6 @@ int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS #if TEST_STD_VER >= 11 char16_t c = u'\0'; std::char_traits::assign(c, u'a'); @@ -39,7 +38,6 @@ #if TEST_STD_VER > 14 static_assert(test_constexpr(), "" ); #endif -#endif // TEST_HAS_NO_UNICODE_CHARS return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/assign3.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/assign3.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/assign3.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/assign3.pass.cpp @@ -19,14 +19,12 @@ TEST_CONSTEXPR_CXX20 bool test() { -#ifndef TEST_HAS_NO_UNICODE_CHARS char16_t s2[3] = {0}; assert(std::char_traits::assign(s2, 3, char16_t(5)) == s2); assert(s2[0] == char16_t(5)); assert(s2[1] == char16_t(5)); assert(s2[2] == char16_t(5)); assert(std::char_traits::assign(NULL, 0, char16_t(5)) == NULL); -#endif // TEST_HAS_NO_UNICODE_CHARS return true; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/compare.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/compare.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/compare.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/compare.pass.cpp @@ -30,7 +30,6 @@ int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS #if TEST_STD_VER >= 11 assert(std::char_traits::compare(u"", u"", 0) == 0); assert(std::char_traits::compare(NULL, NULL, 0) == 0); @@ -57,7 +56,6 @@ #if TEST_STD_VER > 14 static_assert(test_constexpr(), "" ); #endif -#endif // TEST_HAS_NO_UNICODE_CHARS return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/copy.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/copy.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/copy.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/copy.pass.cpp @@ -19,7 +19,6 @@ TEST_CONSTEXPR_CXX20 bool test() { -#ifndef TEST_HAS_NO_UNICODE_CHARS char16_t s1[] = {1, 2, 3}; char16_t s2[3] = {0}; assert(std::char_traits::copy(s2, s1, 3) == s2); @@ -28,9 +27,8 @@ assert(s2[2] == char16_t(3)); assert(std::char_traits::copy(NULL, s1, 0) == NULL); assert(std::char_traits::copy(s1, NULL, 0) == s1); -#endif // TEST_HAS_NO_UNICODE_CHARS - return true; + return true; } int main(int, char**) @@ -41,5 +39,5 @@ static_assert(test()); #endif - return 0; + return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/eof.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/eof.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/eof.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/eof.pass.cpp @@ -13,16 +13,10 @@ // static constexpr int_type eof(); #include -#include - -#include "test_macros.h" int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS std::char_traits::int_type i = std::char_traits::eof(); ((void)i); // Prevent unused warning -#endif - - return 0; + return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/eq.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/eq.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/eq.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/eq.pass.cpp @@ -12,19 +12,14 @@ // static constexpr bool eq(char_type c1, char_type c2); +// UNSUPPORTED: c++03 + #include #include -#include "test_macros.h" - int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS -#if TEST_STD_VER >= 11 assert(std::char_traits::eq(u'a', u'a')); assert(!std::char_traits::eq(u'a', u'A')); -#endif -#endif // TEST_HAS_NO_UNICODE_CHARS - - return 0; + return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/eq_int_type.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/eq_int_type.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/eq_int_type.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/eq_int_type.pass.cpp @@ -19,7 +19,6 @@ int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS #if TEST_STD_VER >= 11 assert( std::char_traits::eq_int_type(u'a', u'a')); assert(!std::char_traits::eq_int_type(u'a', u'A')); @@ -27,7 +26,6 @@ #endif assert( std::char_traits::eq_int_type(std::char_traits::eof(), std::char_traits::eof())); -#endif // TEST_HAS_NO_UNICODE_CHARS - return 0; + return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/find.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/find.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/find.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/find.pass.cpp @@ -31,7 +31,6 @@ int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS char16_t s1[] = {1, 2, 3}; assert(std::char_traits::find(s1, 3, char16_t(1)) == s1); assert(std::char_traits::find(s1, 3, char16_t(2)) == s1+1); @@ -43,7 +42,6 @@ #if TEST_STD_VER > 14 static_assert(test_constexpr(), "" ); #endif -#endif // TEST_HAS_NO_UNICODE_CHARS return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/length.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/length.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/length.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/length.pass.cpp @@ -28,7 +28,6 @@ int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS #if TEST_STD_VER >= 11 assert(std::char_traits::length(u"") == 0); assert(std::char_traits::length(u"a") == 1); @@ -40,7 +39,6 @@ #if TEST_STD_VER > 14 static_assert(test_constexpr(), "" ); #endif -#endif // TEST_HAS_NO_UNICODE_CHARS return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/lt.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/lt.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/lt.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/lt.pass.cpp @@ -12,19 +12,14 @@ // static constexpr bool lt(char_type c1, char_type c2); +// UNSUPPORTED: c++03 + #include #include -#include "test_macros.h" - int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS -#if TEST_STD_VER >= 11 assert(!std::char_traits::lt(u'a', u'a')); assert( std::char_traits::lt(u'A', u'a')); -#endif -#endif // TEST_HAS_NO_UNICODE_CHARS - - return 0; + return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/move.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/move.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/move.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/move.pass.cpp @@ -19,7 +19,6 @@ TEST_CONSTEXPR_CXX20 bool test() { -#ifndef TEST_HAS_NO_UNICODE_CHARS char16_t s1[] = {1, 2, 3}; assert(std::char_traits::move(s1, s1+1, 2) == s1); assert(s1[0] == char16_t(2)); @@ -32,9 +31,8 @@ assert(s1[2] == char16_t(3)); assert(std::char_traits::move(NULL, s1, 0) == NULL); assert(std::char_traits::move(s1, NULL, 0) == s1); -#endif // TEST_HAS_NO_UNICODE_CHARS - return true; + return true; } int main(int, char**) diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/not_eof.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/not_eof.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/not_eof.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/not_eof.pass.cpp @@ -19,7 +19,6 @@ int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS #if TEST_STD_VER >= 11 assert(std::char_traits::not_eof(u'a') == u'a'); assert(std::char_traits::not_eof(u'A') == u'A'); @@ -27,7 +26,6 @@ assert(std::char_traits::not_eof(0) == 0); assert(std::char_traits::not_eof(std::char_traits::eof()) != std::char_traits::eof()); -#endif // TEST_HAS_NO_UNICODE_CHARS return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/to_char_type.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/to_char_type.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/to_char_type.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/to_char_type.pass.cpp @@ -19,13 +19,11 @@ int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS #if TEST_STD_VER >= 11 assert(std::char_traits::to_char_type(u'a') == u'a'); assert(std::char_traits::to_char_type(u'A') == u'A'); #endif assert(std::char_traits::to_char_type(0) == 0); -#endif // TEST_HAS_NO_UNICODE_CHARS return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/to_int_type.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/to_int_type.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/to_int_type.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/to_int_type.pass.cpp @@ -19,13 +19,11 @@ int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS #if TEST_STD_VER >= 11 assert(std::char_traits::to_int_type(u'a') == u'a'); assert(std::char_traits::to_int_type(u'A') == u'A'); #endif assert(std::char_traits::to_int_type(0) == 0); -#endif // TEST_HAS_NO_UNICODE_CHARS return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/types.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/types.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/types.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/types.pass.cpp @@ -24,13 +24,11 @@ int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS static_assert((std::is_same::char_type, char16_t>::value), ""); static_assert((std::is_same::int_type, std::uint_least16_t>::value), ""); static_assert((std::is_same::off_type, std::streamoff>::value), ""); static_assert((std::is_same::pos_type, std::u16streampos>::value), ""); static_assert((std::is_same::state_type, std::mbstate_t>::value), ""); -#endif // TEST_HAS_NO_UNICODE_CHARS - return 0; + return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/assign2.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/assign2.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/assign2.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/assign2.pass.cpp @@ -29,7 +29,6 @@ int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS #if TEST_STD_VER >= 11 char32_t c = U'\0'; std::char_traits::assign(c, U'a'); @@ -39,7 +38,6 @@ #if TEST_STD_VER > 14 static_assert(test_constexpr(), "" ); #endif -#endif // TEST_HAS_NO_UNICODE_CHARS - return 0; + return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/assign3.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/assign3.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/assign3.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/assign3.pass.cpp @@ -19,16 +19,14 @@ TEST_CONSTEXPR_CXX20 bool test() { -#ifndef TEST_HAS_NO_UNICODE_CHARS char32_t s2[3] = {0}; assert(std::char_traits::assign(s2, 3, char32_t(5)) == s2); assert(s2[0] == char32_t(5)); assert(s2[1] == char32_t(5)); assert(s2[2] == char32_t(5)); assert(std::char_traits::assign(NULL, 0, char32_t(5)) == NULL); -#endif // TEST_HAS_NO_UNICODE_CHARS - return true; + return true; } int main(int, char**) diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/compare.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/compare.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/compare.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/compare.pass.cpp @@ -29,7 +29,6 @@ int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS #if TEST_STD_VER >= 11 assert(std::char_traits::compare(U"", U"", 0) == 0); assert(std::char_traits::compare(NULL, NULL, 0) == 0); @@ -56,7 +55,6 @@ #if TEST_STD_VER > 14 static_assert(test_constexpr(), "" ); #endif -#endif // TEST_HAS_NO_UNICODE_CHARS return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/copy.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/copy.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/copy.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/copy.pass.cpp @@ -19,7 +19,6 @@ TEST_CONSTEXPR_CXX20 bool test() { -#ifndef TEST_HAS_NO_UNICODE_CHARS char32_t s1[] = {1, 2, 3}; char32_t s2[3] = {0}; assert(std::char_traits::copy(s2, s1, 3) == s2); @@ -28,9 +27,8 @@ assert(s2[2] == char32_t(3)); assert(std::char_traits::copy(NULL, s1, 0) == NULL); assert(std::char_traits::copy(s1, NULL, 0) == s1); -#endif // TEST_HAS_NO_UNICODE_CHARS - return true; + return true; } int main(int, char**) diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/eof.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/eof.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/eof.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/eof.pass.cpp @@ -19,10 +19,8 @@ int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS std::char_traits::int_type i = std::char_traits::eof(); ((void)i); // Prevent unused warning -#endif - return 0; + return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/eq.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/eq.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/eq.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/eq.pass.cpp @@ -12,19 +12,14 @@ // static constexpr bool eq(char_type c1, char_type c2); +// UNSUPPORTED: c++03 + #include #include -#include "test_macros.h" - int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS -#if TEST_STD_VER >= 11 assert(std::char_traits::eq(U'a', U'a')); assert(!std::char_traits::eq(U'a', U'A')); -#endif -#endif // TEST_HAS_NO_UNICODE_CHARS - - return 0; + return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/eq_int_type.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/eq_int_type.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/eq_int_type.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/eq_int_type.pass.cpp @@ -19,7 +19,6 @@ int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS #if TEST_STD_VER >= 11 assert( std::char_traits::eq_int_type(U'a', U'a')); assert(!std::char_traits::eq_int_type(U'a', U'A')); @@ -27,7 +26,6 @@ #endif assert( std::char_traits::eq_int_type(std::char_traits::eof(), std::char_traits::eof())); -#endif // TEST_HAS_NO_UNICODE_CHARS - return 0; + return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/find.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/find.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/find.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/find.pass.cpp @@ -31,7 +31,6 @@ int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS char32_t s1[] = {1, 2, 3}; assert(std::char_traits::find(s1, 3, char32_t(1)) == s1); assert(std::char_traits::find(s1, 3, char32_t(2)) == s1+1); @@ -43,7 +42,6 @@ #if TEST_STD_VER > 14 static_assert(test_constexpr(), "" ); #endif -#endif // TEST_HAS_NO_UNICODE_CHARS - return 0; + return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/length.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/length.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/length.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/length.pass.cpp @@ -28,7 +28,6 @@ int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS #if TEST_STD_VER >= 11 assert(std::char_traits::length(U"") == 0); assert(std::char_traits::length(U"a") == 1); @@ -40,7 +39,6 @@ #if TEST_STD_VER > 14 static_assert(test_constexpr(), "" ); #endif -#endif // TEST_HAS_NO_UNICODE_CHARS - return 0; + return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/lt.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/lt.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/lt.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/lt.pass.cpp @@ -12,19 +12,14 @@ // static constexpr bool lt(char_type c1, char_type c2); +// UNSUPPORTED: c++03 + #include #include -#include "test_macros.h" - int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS -#if TEST_STD_VER >= 11 assert(!std::char_traits::lt(U'a', U'a')); assert( std::char_traits::lt(U'A', U'a')); -#endif -#endif // TEST_HAS_NO_UNICODE_CHARS - - return 0; + return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/move.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/move.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/move.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/move.pass.cpp @@ -19,7 +19,6 @@ TEST_CONSTEXPR_CXX20 bool test() { -#ifndef TEST_HAS_NO_UNICODE_CHARS char32_t s1[] = {1, 2, 3}; assert(std::char_traits::move(s1, s1+1, 2) == s1); assert(s1[0] == char32_t(2)); @@ -32,9 +31,8 @@ assert(s1[2] == char32_t(3)); assert(std::char_traits::move(NULL, s1, 0) == NULL); assert(std::char_traits::move(s1, NULL, 0) == s1); -#endif // TEST_HAS_NO_UNICODE_CHARS - return true; + return true; } int main(int, char**) diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/not_eof.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/not_eof.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/not_eof.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/not_eof.pass.cpp @@ -19,7 +19,6 @@ int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS #if TEST_STD_VER >= 11 assert(std::char_traits::not_eof(U'a') == U'a'); assert(std::char_traits::not_eof(U'A') == U'A'); @@ -27,7 +26,6 @@ assert(std::char_traits::not_eof(0) == 0); assert(std::char_traits::not_eof(std::char_traits::eof()) != std::char_traits::eof()); -#endif // TEST_HAS_NO_UNICODE_CHARS - return 0; + return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/to_char_type.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/to_char_type.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/to_char_type.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/to_char_type.pass.cpp @@ -19,13 +19,11 @@ int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS #if TEST_STD_VER >= 11 assert(std::char_traits::to_char_type(U'a') == U'a'); assert(std::char_traits::to_char_type(U'A') == U'A'); #endif assert(std::char_traits::to_char_type(0) == 0); -#endif // TEST_HAS_NO_UNICODE_CHARS - return 0; + return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/to_int_type.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/to_int_type.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/to_int_type.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/to_int_type.pass.cpp @@ -19,13 +19,11 @@ int main(int, char**) { -#ifndef TEST_HAS_NO_UNICODE_CHARS #if TEST_STD_VER >= 11 assert(std::char_traits::to_int_type(U'a') == U'a'); assert(std::char_traits::to_int_type(U'A') == U'A'); #endif assert(std::char_traits::to_int_type(0) == 0); -#endif // TEST_HAS_NO_UNICODE_CHARS - return 0; + return 0; } diff --git a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/types.pass.cpp b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/types.compile.pass.cpp rename from libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/types.pass.cpp rename to libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/types.compile.pass.cpp --- a/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/types.pass.cpp +++ b/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/types.compile.pass.cpp @@ -20,17 +20,8 @@ #include #include -#include "test_macros.h" - -int main(int, char**) -{ -#ifndef TEST_HAS_NO_UNICODE_CHARS - static_assert((std::is_same::char_type, char32_t>::value), ""); - static_assert((std::is_same::int_type, std::uint_least32_t>::value), ""); - static_assert((std::is_same::off_type, std::streamoff>::value), ""); - static_assert((std::is_same::pos_type, std::u32streampos>::value), ""); - static_assert((std::is_same::state_type, std::mbstate_t>::value), ""); -#endif // TEST_HAS_NO_UNICODE_CHARS - - return 0; -} +static_assert((std::is_same::char_type, char32_t>::value), ""); +static_assert((std::is_same::int_type, std::uint_least32_t>::value), ""); +static_assert((std::is_same::off_type, std::streamoff>::value), ""); +static_assert((std::is_same::pos_type, std::u32streampos>::value), ""); +static_assert((std::is_same::state_type, std::mbstate_t>::value), ""); diff --git a/libcxx/test/std/strings/string.classes/typedefs.pass.cpp b/libcxx/test/std/strings/string.classes/typedefs.compile.pass.cpp rename from libcxx/test/std/strings/string.classes/typedefs.pass.cpp rename to libcxx/test/std/strings/string.classes/typedefs.compile.pass.cpp --- a/libcxx/test/std/strings/string.classes/typedefs.pass.cpp +++ b/libcxx/test/std/strings/string.classes/typedefs.compile.pass.cpp @@ -22,19 +22,12 @@ #include "test_macros.h" -int main(int, char**) -{ - static_assert((std::is_same >::value), ""); +static_assert((std::is_same >::value), ""); #ifndef TEST_HAS_NO_WIDE_CHARACTERS - static_assert((std::is_same >::value), ""); +static_assert((std::is_same >::value), ""); #endif #if defined(__cpp_lib_char8_t) && __cpp_lib_char8_t >= 201811L - static_assert((std::is_same >::value), ""); +static_assert((std::is_same >::value), ""); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS - static_assert((std::is_same >::value), ""); - static_assert((std::is_same >::value), ""); -#endif // TEST_HAS_NO_UNICODE_CHARS - - return 0; -} +static_assert((std::is_same >::value), ""); +static_assert((std::is_same >::value), ""); diff --git a/libcxx/test/std/strings/string.view/string.view.hash/enabled_hashes.pass.cpp b/libcxx/test/std/strings/string.view/string.view.hash/enabled_hashes.pass.cpp --- a/libcxx/test/std/strings/string.view/string.view.hash/enabled_hashes.pass.cpp +++ b/libcxx/test/std/strings/string.view/string.view.hash/enabled_hashes.pass.cpp @@ -30,10 +30,8 @@ #if defined(__cpp_lib_char8_t) && __cpp_lib_char8_t >= 201811L test_hash_enabled_for_type(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test_hash_enabled_for_type(); test_hash_enabled_for_type(); -#endif } return 0; diff --git a/libcxx/test/std/strings/string.view/string.view.hash/string_view.pass.cpp b/libcxx/test/std/strings/string.view/string.view.hash/string_view.pass.cpp --- a/libcxx/test/std/strings/string.view/string.view.hash/string_view.pass.cpp +++ b/libcxx/test/std/strings/string.view/string.view.hash/string_view.pass.cpp @@ -63,10 +63,8 @@ #if defined(__cpp_lib_char8_t) && __cpp_lib_char8_t >= 201811L test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif #ifndef TEST_HAS_NO_WIDE_CHARACTERS test(); #endif diff --git a/libcxx/test/std/strings/string.view/string.view.cons/assign.pass.cpp b/libcxx/test/std/strings/string.view/string.view.cons/assign.pass.cpp --- a/libcxx/test/std/strings/string.view/string.view.cons/assign.pass.cpp +++ b/libcxx/test/std/strings/string.view/string.view.cons/assign.pass.cpp @@ -37,10 +37,8 @@ assert( test (u8"1234")); #endif #if TEST_STD_VER >= 11 -# ifndef TEST_HAS_NO_UNICODE_CHARS assert( test ( u"1234")); assert( test ( U"1234")); -# endif #endif #ifndef TEST_HAS_NO_WIDE_CHARACTERS assert( test ( L"1234")); @@ -51,10 +49,8 @@ # if defined(__cpp_lib_char8_t) && __cpp_lib_char8_t >= 201811L static_assert( test ({u8"abc", 3}), ""); # endif -# ifndef TEST_HAS_NO_UNICODE_CHARS static_assert( test ({ u"abc", 3}), ""); static_assert( test ({ U"abc", 3}), ""); -# endif # ifndef TEST_HAS_NO_WIDE_CHARACTERS static_assert( test ({ L"abc", 3}), ""); # endif diff --git a/libcxx/test/std/utilities/format/format.arguments/format.arg/ctor.pass.cpp b/libcxx/test/std/utilities/format/format.arguments/format.arg/ctor.pass.cpp --- a/libcxx/test/std/utilities/format/format.arguments/format.arg/ctor.pass.cpp +++ b/libcxx/test/std/utilities/format/format.arguments/format.arg/ctor.pass.cpp @@ -36,10 +36,8 @@ #ifndef TEST_HAS_NO_CHAR8_T test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif } int main(int, char**) { diff --git a/libcxx/test/std/utilities/format/format.formatter/format.context/format.context/advance_to.pass.cpp b/libcxx/test/std/utilities/format/format.formatter/format.context/format.context/advance_to.pass.cpp --- a/libcxx/test/std/utilities/format/format.formatter/format.context/format.context/advance_to.pass.cpp +++ b/libcxx/test/std/utilities/format/format.formatter/format.context/format.context/advance_to.pass.cpp @@ -56,7 +56,6 @@ std::make_format_args>, char8_t>>())); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(std::basic_format_args( std::make_format_args>, @@ -65,7 +64,6 @@ std::make_format_args>, char32_t>>())); -#endif } int main(int, char**) { diff --git a/libcxx/test/std/utilities/format/format.formatter/format.context/format.context/out.pass.cpp b/libcxx/test/std/utilities/format/format.formatter/format.context/format.context/out.pass.cpp --- a/libcxx/test/std/utilities/format/format.formatter/format.context/format.context/out.pass.cpp +++ b/libcxx/test/std/utilities/format/format.formatter/format.context/format.context/out.pass.cpp @@ -52,7 +52,6 @@ std::make_format_args>, char8_t>>())); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(std::basic_format_args( std::make_format_args>, @@ -61,7 +60,6 @@ std::make_format_args>, char32_t>>())); -#endif } int main(int, char**) { diff --git a/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/advance_to.pass.cpp b/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/advance_to.pass.cpp --- a/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/advance_to.pass.cpp +++ b/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/advance_to.pass.cpp @@ -54,10 +54,8 @@ #ifndef TEST_HAS_NO_CHAR8_T test(u8"abc"); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(u"abc"); test(U"abc"); -#endif return true; } diff --git a/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/begin.pass.cpp b/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/begin.pass.cpp --- a/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/begin.pass.cpp +++ b/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/begin.pass.cpp @@ -40,10 +40,8 @@ #ifndef TEST_HAS_NO_CHAR8_T test(u8"abc"); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(u"abc"); test(U"abc"); -#endif return true; } diff --git a/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/ctor.pass.cpp b/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/ctor.pass.cpp --- a/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/ctor.pass.cpp +++ b/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/ctor.pass.cpp @@ -63,10 +63,8 @@ #ifndef TEST_HAS_NO_CHAR8_T test(u8"abc"); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(u"abc"); test(U"abc"); -#endif return true; } diff --git a/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/end.pass.cpp b/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/end.pass.cpp --- a/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/end.pass.cpp +++ b/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/end.pass.cpp @@ -40,10 +40,8 @@ #ifndef TEST_HAS_NO_CHAR8_T test(u8"abc"); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(u"abc"); test(U"abc"); -#endif return true; } diff --git a/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/types.compile.pass.cpp b/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/types.compile.pass.cpp --- a/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/types.compile.pass.cpp +++ b/libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/types.compile.pass.cpp @@ -52,10 +52,8 @@ #ifndef TEST_HAS_NO_CHAR8_T test(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS test(); test(); -#endif } static_assert(std::is_same_v constexpr void test_uchars() { std::cmp_equal(T(), T()); // expected-error 2 {{no matching function for call to 'cmp_equal'}} @@ -121,7 +120,6 @@ std::in_range(int()); // expected-error 2 {{no matching function for call to 'in_range'}} std::in_range(T()); // expected-error 2 {{no matching function for call to 'in_range'}} } -#endif // TEST_HAS_NO_UNICODE_CHARS int main(int, char**) { test(); @@ -142,10 +140,8 @@ test_char8t(); #endif // TEST_HAS_NO_CHAR8_T -#ifndef TEST_HAS_NO_UNICODE_CHARS test_uchars(); test_uchars(); -#endif return 0; } diff --git a/libcxx/test/support/atomic_helpers.h b/libcxx/test/support/atomic_helpers.h --- a/libcxx/test/support/atomic_helpers.h +++ b/libcxx/test/support/atomic_helpers.h @@ -81,10 +81,8 @@ #if TEST_STD_VER > 17 && defined(__cpp_char8_t) TestFunctor()(); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS TestFunctor()(); TestFunctor()(); -#endif TestFunctor()(); TestFunctor()(); TestFunctor()(); diff --git a/libcxx/test/support/poisoned_hash_helper.h b/libcxx/test/support/poisoned_hash_helper.h --- a/libcxx/test/support/poisoned_hash_helper.h +++ b/libcxx/test/support/poisoned_hash_helper.h @@ -60,10 +60,8 @@ #ifndef TEST_HAS_NO_WIDE_CHARACTERS wchar_t, #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS char16_t, char32_t, -#endif short, unsigned short, int, diff --git a/libcxx/test/support/test.support/make_string_header.pass.cpp b/libcxx/test/support/test.support/make_string_header.pass.cpp --- a/libcxx/test/support/test.support/make_string_header.pass.cpp +++ b/libcxx/test/support/test.support/make_string_header.pass.cpp @@ -37,7 +37,6 @@ == u8" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMN" "OPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"); #endif -#ifndef TEST_HAS_NO_UNICODE_CHARS assert(MAKE_STRING(char16_t, " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMN" "OPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~") @@ -49,7 +48,6 @@ "OPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~") == U" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMN" "OPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"); -#endif // clang-format on return 0; diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h --- a/libcxx/test/support/test_macros.h +++ b/libcxx/test/support/test_macros.h @@ -363,10 +363,6 @@ # define TEST_HAS_NO_INT128 #endif -#if defined(_LIBCPP_HAS_NO_UNICODE_CHARS) -# define TEST_HAS_NO_UNICODE_CHARS -#endif - #if defined(_LIBCPP_HAS_NO_LOCALIZATION) # define TEST_HAS_NO_LOCALIZATION #endif