[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / time / time.duration / time.duration.cast / toduration.compile.fail.cpp
blob0f52c36d86cae905494cce1d74cda18a2a070e94
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 // duration
13 // template <class ToDuration, class Rep, class Period>
14 // ToDuration
15 // duration_cast(const duration<Rep, Period>& d);
17 // ToDuration shall be an instantiation of duration.
19 #include <chrono>
21 int main(int, char**)
23 std::chrono::duration_cast<int>(std::chrono::milliseconds(3));
25 return 0;