[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / containers / associative / map / map.cons / compare.pass.cpp
blob04702f319771e816aed3b8c096a3f3bd571e8832
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 // <map>
11 // class map
13 // explicit map(const key_compare& comp);
15 #include <map>
16 #include <cassert>
18 #include "test_macros.h"
19 #include "../../../test_compare.h"
20 #include "min_allocator.h"
22 int main(int, char**)
25 typedef test_less<int> C;
26 const std::map<int, double, C> m(C(3));
27 assert(m.empty());
28 assert(m.begin() == m.end());
29 assert(m.key_comp() == C(3));
31 #if TEST_STD_VER >= 11
33 typedef test_less<int> C;
34 const std::map<int, double, C, min_allocator<std::pair<const int, double>>> m(C(3));
35 assert(m.empty());
36 assert(m.begin() == m.end());
37 assert(m.key_comp() == C(3));
39 #endif
41 return 0;