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//===----------------------------------------------------------------------===//
8
9// <unordered_set>
10
11// template <class Value, class Hash = hash<Value>, class Pred = equal_to<Value>,
12// class Alloc = allocator<Value>>
13// class unordered_set
14
15// unordered_set& operator=(const unordered_set& u);
16
17// Validate whether the container can be copy-assigned with an ADL-hijacking operator&
18
19#include <unordered_set>
20
21#include "test_macros.h"
22#include "operator_hijacker.h"
23
24void test() {
25 std::unordered_set<operator_hijacker> so;
26 std::unordered_set<operator_hijacker> s;
27 s = so;
28}
29

source code of libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/assign_copy.addressof.compile.pass.cpp