| 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 | // floor |
| 13 | |
| 14 | // template <class ToDuration, class Clock, class Duration> |
| 15 | // time_point<Clock, ToDuration> |
| 16 | // floor(const time_point<Clock, Duration>& t); |
| 17 | |
| 18 | // ToDuration shall be an instantiation of duration. |
| 19 | |
| 20 | #include <chrono> |
| 21 | |
| 22 | int main(int, char**) |
| 23 | { |
| 24 | std::chrono::floor<int>(std::chrono::system_clock::now()); |
| 25 | |
| 26 | return 0; |
| 27 | } |
| 28 | |