[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / containers / sequences / array / compare.three_way.verify.cpp
blobb7267ec9b932bca48808cf6c66f84cc8c63c568d
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 // UNSUPPORTED: c++03, c++11, c++14, c++17
10 // <array>
12 // template<class T, size_t N>
13 // constexpr synth-three-way-result<T>
14 // operator<=>(const array<T, N>& x, const array<T, N>& y);
16 // arrays with different sizes should not compare
18 #include <array>
20 int main(int, char**) {
22 std::array a1{1};
23 std::array a2{1, 2};
25 // expected-error@*:* {{invalid operands to binary expression}}
26 a1 <=> a2;
29 std::array a1{1, 2};
30 std::array a2{1};
32 // expected-error@*:* {{invalid operands to binary expression}}
33 a1 <=> a2;
36 return 0;