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 //===----------------------------------------------------------------------===//
19 #include "test_macros.h"
20 #include "../../rep.h"
24 typedef std::chrono::system_clock Clock;
25 typedef std::chrono::duration<Rep, std::milli> Duration;
27 std::chrono::time_point<Clock, Duration> t;
28 assert(t.time_since_epoch() == Duration::zero());
32 constexpr std::chrono::time_point<Clock, Duration> t;
33 static_assert(t.time_since_epoch() == Duration::zero(), "");