[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / containers / associative / set / set.cons / copy_assign.addressof.compile.pass.cpp
blobe3677991a23ddbb3ed6b6f6ae395a39f9b258863
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 // <set>
11 // class set
13 // set& operator=(const set& s);
15 // Validate whether the container can be copy-assigned with an ADL-hijacking operator&
17 #include <set>
19 #include "test_macros.h"
20 #include "operator_hijacker.h"
22 void test() {
23 std::set<operator_hijacker> so;
24 std::set<operator_hijacker> s;
25 s = so;