[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / time / time.duration / time.duration.alg / abs.compile.fail.cpp
blob8d807c7a9b39573138ccc03d3dac97d377b9891f
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 // UNSUPPORTED: c++03, c++11, c++14
10 // <chrono>
12 // ceil
14 // template <class Rep, class Period>
15 // constexpr duration<Rep, Period> abs(duration<Rep, Period> d)
17 // This function shall not participate in overload resolution unless numeric_limits<Rep>::is_signed is true.
19 #include <chrono>
21 typedef std::chrono::duration<unsigned> unsigned_secs;
23 int main(int, char**)
25 std::chrono::abs(unsigned_secs(0));
27 return 0;