[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / containers / associative / multiset / multiset.nonmember / op_compare.pass.cpp
bloba8011f199775edb6b0d75fe5a33c29d3819c3129
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 // <set>
11 // template<class Key, class Compare, class Alloc>
12 // bool operator==(const std::multiset<Key, Compare, Alloc>& lhs,
13 // const std::multiset<Key, Compare, Alloc>& rhs);
15 // template<class Key, class Compare, class Alloc>
16 // bool operator!=(const std::multiset<Key, Compare, Alloc>& lhs,
17 // const std::multiset<Key, Compare, Alloc>& rhs);
19 // template<class Key, class Compare, class Alloc>
20 // bool operator<(const std::multiset<Key, Compare, Alloc>& lhs,
21 // const std::multiset<Key, Compare, Alloc>& rhs);
23 // template<class Key, class Compare, class Alloc>
24 // bool operator>(const std::multiset<Key, Compare, Alloc>& lhs,
25 // const std::multiset<Key, Compare, Alloc>& rhs);
27 // template<class Key, class Compare, class Alloc>
28 // bool operator<=(const std::multiset<Key, Compare, Alloc>& lhs,
29 // const std::multiset<Key, Compare, Alloc>& rhs);
31 // template<class Key, class Compare, class Alloc>
32 // bool operator>=(const std::multiset<Key, Compare, Alloc>& lhs,
33 // const std::multiset<Key, Compare, Alloc>& rhs);
35 #include <set>
36 #include <cassert>
37 #include <string>
39 #include "test_comparisons.h"
41 int main(int, char**) {
43 std::multiset<int> s1, s2;
44 s1.insert(1);
45 s2.insert(2);
46 const std::multiset<int>& cs1 = s1, cs2 = s2;
47 assert(testComparisons(cs1, cs2, false, true));
50 std::multiset<int> s1, s2;
51 s1.insert(1);
52 s2.insert(1);
53 const std::multiset<int>& cs1 = s1, cs2 = s2;
54 assert(testComparisons(cs1, cs2, true, false));
57 std::multiset<int> s1, s2;
58 s1.insert(1);
59 s2.insert(1);
60 s2.insert(2);
61 const std::multiset<int>& cs1 = s1, cs2 = s2;
62 assert(testComparisons(cs1, cs2, false, true));
65 std::multiset<int> s1, s2;
66 s1.insert(1);
67 s2.insert(1);
68 s2.insert(1);
69 s2.insert(1);
70 const std::multiset<int>& cs1 = s1, cs2 = s2;
71 assert(testComparisons(cs1, cs2, false, true));
73 return 0;