• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 //===----------------------------------------------------------------------===//
8 
9 // UNSUPPORTED: c++03, c++11, c++14
10 // <chrono>
11 
12 // ceil
13 
14 // template <class Rep, class Period>
15 //   constexpr duration<Rep, Period> abs(duration<Rep, Period> d)
16 
17 // This function shall not participate in overload resolution unless numeric_limits<Rep>::is_signed is true.
18 
19 #include <chrono>
20 
21 typedef std::chrono::duration<unsigned> unsigned_secs;
22 
main(int,char **)23 int main(int, char**)
24 {
25     std::chrono::abs(unsigned_secs(0));
26 
27   return 0;
28 }
29