Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / thread / thread.mutex / thread.mutex.requirements / thread.sharedtimedmutex.requirements / thread.sharedtimedmutex.class / assign.compile.fail.cpp
blobca1d0ff0f76ff92e8fcd0d55e1131b2fc9921ab8
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
11 // UNSUPPORTED: availability-shared_mutex-missing
13 // <shared_mutex>
15 // class shared_timed_mutex;
17 // shared_timed_mutex& operator=(const shared_timed_mutex&) = delete;
19 #include <shared_mutex>
21 int main(int, char**)
23 std::shared_timed_mutex m0;
24 std::shared_timed_mutex m1;
25 m1 = m0;
27 return 0;