Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / containers / associative / multimap / multimap.cons / compare.pass.cpp
blobebe1c9d6c72372abaf70ccbfd7445b9889ceda7f
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 multimap
13 // explicit multimap(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::multimap<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::multimap<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;