Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / thread / thread.mutex / thread.mutex.requirements / thread.mutex.requirements.mutex / thread.mutex.class / copy.compile.fail.cpp
blob9edfb7267dee6fd01412082b40e9ec1562a87a5d
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 // <mutex>
11 // class mutex;
13 // mutex(const mutex&) = delete;
15 #include <mutex>
17 int main(int, char**)
19 std::mutex m0;
20 std::mutex m1(m0);
22 return 0;