From 5da2a71b3453b03799ba9495d81858d70076ec18 Mon Sep 17 00:00:00 2001 From: "Stephan T. Lavavej" Date: Fri, 19 Jan 2024 16:17:03 -0800 Subject: [PATCH] [libc++][test] Move format.functions ASCII tests to `libcxx/test/libcxx` (#78661) As @cpplearner explained in microsoft/STL#4328: > libc++'s "ascii" mode (controlled by the `_LIBCPP_HAS_NO_UNICODE` > macro) means "every code unit outside ASCII is treated as a valid > printable character". AFAIK we \[MSVC's STL\] don't support such a mode. Because these files are testing a non-Standard mode, they should be moved from `libcxx/test/std` to `libcxx/test/libcxx`. NOKEYCHECK=True GitOrigin-RevId: 123ab34abc68e2e64720f9690aed5cb9e62a035d --- .../utilities/format/format.functions/ascii.pass.cpp | 0 .../format/format.functions/escaped_output.ascii.pass.cpp | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename test/{std => libcxx}/utilities/format/format.functions/ascii.pass.cpp (100%) rename test/{std => libcxx}/utilities/format/format.functions/escaped_output.ascii.pass.cpp (99%) diff --git a/test/std/utilities/format/format.functions/ascii.pass.cpp b/test/libcxx/utilities/format/format.functions/ascii.pass.cpp similarity index 100% rename from test/std/utilities/format/format.functions/ascii.pass.cpp rename to test/libcxx/utilities/format/format.functions/ascii.pass.cpp diff --git a/test/std/utilities/format/format.functions/escaped_output.ascii.pass.cpp b/test/libcxx/utilities/format/format.functions/escaped_output.ascii.pass.cpp similarity index 99% rename from test/std/utilities/format/format.functions/escaped_output.ascii.pass.cpp rename to test/libcxx/utilities/format/format.functions/escaped_output.ascii.pass.cpp index 1d92c7c96c..32352774a0 100644 --- a/test/std/utilities/format/format.functions/escaped_output.ascii.pass.cpp +++ b/test/libcxx/utilities/format/format.functions/escaped_output.ascii.pass.cpp @@ -226,7 +226,7 @@ void test_char() { static_assert(sizeof(CharT) == 4, "add support for unexpected size"); // Unicode fitting in a 32-bit wchar_t - constexpr wchar_t x = 0x1ffff; + constexpr wchar_t x = 0x1ffff; constexpr std::uint32_t y = 0x1ffff; static_assert(x == y);