[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / containers / associative / set / set.cons / compare.pass.cpp
blob4cd3f3067c84168bb632295c120ff8d215b93979
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 // class set
13 // explicit set(const key_compare& comp) const;
15 #include <set>
16 #include <cassert>
18 #include "test_macros.h"
19 #include "../../../test_compare.h"
21 int main(int, char**)
23 typedef test_less<int> C;
24 const std::set<int, C> m(C(3));
25 assert(m.empty());
26 assert(m.begin() == m.end());
27 assert(m.key_comp() == C(3));
28 assert(m.value_comp() == C(3));
30 return 0;