1 //===----------------------------------------------------------------------===//
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 //===----------------------------------------------------------------------===//
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(), "");