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 unique_lock;
12
13// unique_lock& operator=(unique_lock const&) = delete;
14
15#include <mutex>
16
17#include "checking_mutex.h"
18
19static_assert(!std::is_copy_assignable<std::lock_guard<checking_mutex> >::value, "");
20

source code of libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/copy_assign.compile.pass.cpp