1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: c++98, c++03, c++11, c++14, c++17
12 // TODO: Remove this when filesystem gets integrated into the dylib
13 // REQUIRES: c++filesystem
19 // static time_point now() noexcept;
24 #include "test_macros.h"
28 typedef std::chrono::file_clock C;
29 ASSERT_NOEXCEPT(C::now());
31 C::time_point t1 = C::now();
32 assert(t1.time_since_epoch().count() != 0);
33 assert(C::time_point::min() < t1);
34 assert(C::time_point::max() > t1);