1 //===-- Unittests for time ------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "src/time/time_func.h"
10 #include "test/UnitTest/Test.h"
15 TEST(LlvmLibcTimeTest
, SmokeTest
) {
17 time_t t2
= LIBC_NAMESPACE::time(&t1
);
19 ASSERT_GT(t1
, time_t(0));
21 time_t t3
= LIBC_NAMESPACE::time(nullptr);