diff options
Diffstat (limited to 'libcxx/test/std/utilities/time/time.clock/time.clock.system/now.pass.cpp')
-rw-r--r-- | libcxx/test/std/utilities/time/time.clock/time.clock.system/now.pass.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libcxx/test/std/utilities/time/time.clock/time.clock.system/now.pass.cpp b/libcxx/test/std/utilities/time/time.clock/time.clock.system/now.pass.cpp new file mode 100644 index 00000000000..60530fdf3a9 --- /dev/null +++ b/libcxx/test/std/utilities/time/time.clock/time.clock.system/now.pass.cpp @@ -0,0 +1,22 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// <chrono> + +// system_clock + +// static time_point now(); + +#include <chrono> + +int main() +{ + typedef std::chrono::system_clock C; + C::time_point t1 = C::now(); +} |