Debian Codegraph @

libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/assign.compile.fail.cpp

raw
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 // UNSUPPORTED: c++03, c++11
10
11 // <shared_mutex>
12
13 // class shared_timed_mutex;
14
15 // shared_timed_mutex& operator=(const shared_timed_mutex&) = delete;
16
17 #include <shared_mutex>
18
19 int main(int, char**)
20 {
21 std::shared_timed_mutex m0;
22 std::shared_timed_mutex m1;
23 m1 = m0;
24
25 return 0;
26 }