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 // <mutex>
10 
11 // template <class Mutex> class lock_guard;
12 
13 // lock_guard& operator=(lock_guard const&) = delete;
14 
15 #include <mutex>
16 
main(int,char **)17 int main(int, char**)
18 {
19     std::mutex m0;
20     std::mutex m1;
21     std::lock_guard<std::mutex> lg0(m0);
22     std::lock_guard<std::mutex> lg(m1);
23     lg = lg0;
24 
25   return 0;
26 }
27