[libc-commits] [clang] [clang-tools-extra] [libc] [libc][c11] implement ctime (PR #107285)
Зишан Мирза via libc-commits
libc-commits at lists.llvm.org
Sun Sep 8 08:52:11 PDT 2024
================
@@ -0,0 +1,64 @@
+//===-- Unittests for ctime_r ---------------------------------------------===//
+//
+// 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 "src/errno/libc_errno.h"
+#include "src/time/ctime_r.h"
+#include "src/time/time_utils.h"
+#include "test/UnitTest/Test.h"
+#include "test/src/time/TmHelper.h"
+
+using LIBC_NAMESPACE::time_utils::TimeConstants;
+
+// make check-libc LIBC_TEST_TARGET=call_ctime_r VERBOSE=1
----------------
zimirza wrote:
This is interesting. I did not know that. I have updated the comments. Thank you.
https://github.com/llvm/llvm-project/pull/107285
More information about the libc-commits
mailing list