[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / time / time.point / time.point.comparisons / compare.three_way.compile.fail.cpp
blob9d4ab04c77e0405d5fa946a470a0432e0b2d2ecd
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, c++17
11 // <chrono>
13 // time_point
15 // template<class Clock, class Duration1,
16 // three_way_comparable_with<Duration1> Duration2>
17 // constexpr auto operator<=>(const time_point<Clock, Duration1>& lhs,
18 // const time_point<Clock, Duration2>& rhs);
20 // time_points with different clocks should not compare
22 #include <chrono>
24 #include "../../clock.h"
26 int main(int, char**) {
27 using namespace std::chrono_literals;
28 std::chrono::time_point<std::chrono::system_clock, std::chrono::milliseconds> t1{3ms};
29 std::chrono::time_point<Clock, std::chrono::milliseconds> t2{3ms};
31 t1 <=> t2;
33 return 0;