[lld][WebAssembly] Introduce Ctx::arg
[llvm-project.git] / libcxx / test / std / time / time.clock / time.clock.system / from_time_t.pass.cpp
blob70dd8117e6cef55114da676f5d4e7725702cc8b4
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 // <chrono>
11 // system_clock
13 // static time_point from_time_t(time_t t);
15 #include <chrono>
16 #include <ctime>
18 #include "test_macros.h"
20 int main(int, char**)
22 typedef std::chrono::system_clock C;
23 C::time_point t1 = C::from_time_t(C::to_time_t(C::now()));
24 ((void)t1);
26 return 0;