Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / containers / unord / unord.set / insert_hint_rvalue.addressof.compile.pass.cpp
blob333c673e30b9a3aafd69526b65bd94cdb64b514a
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 // <unordered_set>
11 // template <class Value, class Hash = hash<Value>, class Pred = equal_to<Value>,
12 // class Alloc = allocator<Value>>
13 // class unordered_set
15 // iterator insert(const_iterator p, value_type&& x);
17 // Validate whether the operation properly guards against ADL-hijacking operator&
19 #include <unordered_set>
21 #include "test_macros.h"
22 #include "operator_hijacker.h"
24 void test() {
25 std::unordered_set<operator_hijacker> s;
26 s.insert(s.cbegin(), operator_hijacker());