[libc-commits] [libc] [libc] Add iswctype and wctype (PR #191178)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Thu Apr 16 04:48:53 PDT 2026


================
@@ -12,7 +12,7 @@
 #include "test/UnitTest/Test.h"
 
 TEST(LlvmLibciswctype, Alnum) {
-  const auto desc = LIBC_NAMESPACE::wctype("alnum");
+  const wctype_t desc = LIBC_NAMESPACE::wctype("alnum");
   ASSERT_NE(desc, static_cast<wctype_t>(0));
 
   EXPECT_NE(LIBC_NAMESPACE::iswctype('a', desc), 0);
----------------
michaelrj-google wrote:

you should pass these as `wchar`s instead of as `char`s.

https://github.com/llvm/llvm-project/pull/191178


More information about the libc-commits mailing list