[libc-commits] [libc] [libc] implement fputws (PR #196160)
Jeff Bailey via libc-commits
libc-commits at lists.llvm.org
Fri May 15 07:26:48 PDT 2026
================
@@ -0,0 +1,163 @@
+//===-- Unittests for fputws ----------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "hdr/errno_macros.h"
+#include "hdr/stdint_proxy.h"
+#include "src/stdio/fclose.h"
+#include "src/stdio/ferror.h"
+#include "src/stdio/fopen.h"
+#include "src/stdio/fread.h"
+#include "src/wchar/fputws.h"
+#include "src/wchar/fwide.h"
+#include "test/UnitTest/ErrnoCheckingTest.h"
+#include "test/UnitTest/Test.h"
+
+using LlvmLibcFputwsTest = LIBC_NAMESPACE::testing::ErrnoCheckingTest;
+
+TEST_F(LlvmLibcFputwsTest, WriteWideString) {
+ auto FILENAME =
----------------
kaladron wrote:
I think this should either be const auto or lowercase.
https://github.com/llvm/llvm-project/pull/196160
More information about the libc-commits
mailing list