[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / time / time.duration / time.duration.cons / convert_inexact.compile.fail.cpp
blobfb0b488f7d8dfbc453ed1c0082c1c1c0f8e682cb
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 Rep2, class Period2>
14 // duration(const duration<Rep2, Period2>& d);
16 // inexact conversions disallowed for integral reps
18 #include <chrono>
20 int main(int, char**)
22 std::chrono::microseconds us(1);
23 std::chrono::milliseconds ms = us;
25 return 0;