Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / containers / unord / unord.multimap / unord.multimap.cnstr / move.addressof.compile.pass.cpp
blob73b19f35e204881a6001d3a5c7feb45a6b53cde7
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 // UNSUPPORTED: c++03
11 // <unordered_map>
13 // template <class Key, class T, class Hash = hash<Key>, class Pred = equal_to<Key>,
14 // class Alloc = allocator<pair<const Key, T>>>
15 // class unordered_multimap
17 // unordered_multimap(unordered_multimap&&)
18 // noexcept(
19 // is_nothrow_move_constructible<hasher>::value &&
20 // is_nothrow_move_constructible<key_equal>::value &&
21 // is_nothrow_move_constructible<allocator_type>::value);
23 // Validate whether the operation properly guards against ADL-hijacking operator&
25 #include <unordered_map>
27 #include "test_macros.h"
28 #include "operator_hijacker.h"
30 void test() {
31 std::unordered_multimap<operator_hijacker, operator_hijacker> mo;
32 std::unordered_multimap<operator_hijacker, operator_hijacker> m(std::move(mo));