[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / thread / thread.mutex / thread.lock / thread.lock.shared / thread.lock.shared.cons / copy_assign.compile.fail.cpp
blob9196682c00a05b60843a619696db2a8b092dd854
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, c++11
10 // <shared_mutex>
12 // template <class Mutex> class shared_lock;
14 // shared_lock& operator=(shared_lock const&) = delete;
16 #include <shared_mutex>
18 std::shared_timed_mutex m0;
19 std::shared_timed_mutex m1;
21 int main(int, char**)
23 std::shared_lock<std::shared_timed_mutex> lk0(m0);
24 std::shared_lock<std::shared_timed_mutex> lk1(m1);
25 lk1 = lk0;
27 return 0;