[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / time / time.point / time.point.cons / default.pass.cpp
blobe4197aa6aec24b2c13eb7cff14918d7eecc6fc46
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 // time_point
13 // time_point();
15 #include <chrono>
16 #include <cassert>
17 #include <ratio>
19 #include "test_macros.h"
20 #include "../../rep.h"
22 int main(int, char**)
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());
30 #if TEST_STD_VER > 11
32 constexpr std::chrono::time_point<Clock, Duration> t;
33 static_assert(t.time_since_epoch() == Duration::zero(), "");
35 #endif
37 return 0;