[lldb] Make SBProgress move-only (#124843)
[llvm-project.git] / libcxx / test / std / thread / thread.mutex / thread.lock / thread.lock.shared / thread.lock.shared.cons / copy_ctor.compile.fail.cpp
blob5c13e087a6c5c6684f16632bb6d3b6983e740628
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(shared_lock const&) = delete;
16 #include <shared_mutex>
18 std::shared_timed_mutex m;
20 int main(int, char**)
22 std::shared_lock<std::shared_timed_mutex> lk0(m);
23 std::shared_lock<std::shared_timed_mutex> lk = lk0;
25 return 0;