[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / time / time.point / time.point.cons / duration.compile.fail.cpp
blobb28116236d051ed6a5498459af74d17093c73d2d
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 // explicit time_point(const duration& d);
15 // test for explicit
17 #include <chrono>
19 int main(int, char**)
21 typedef std::chrono::system_clock Clock;
22 typedef std::chrono::milliseconds Duration;
23 std::chrono::time_point<Clock, Duration> t = Duration(3);
25 return 0;