Skip to content

Commit

Permalink
[libc++][test] Move format.functions ASCII tests to `libcxx/test/libc…
Browse files Browse the repository at this point in the history
…xx` (#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
  • Loading branch information
StephanTLavavej authored and copybara-github committed Jan 20, 2024
1 parent 031edd0 commit 5da2a71
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5da2a71

Please sign in to comment.