You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcxx/test/std/thread/thread.condition/thread.condition.condvarany/assign.fail.cpp

25 lines
649 B
C++

//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <condition_variable>
// class condition_variable_any;
// condition_variable_any& operator=(const condition_variable_any&) = delete;
#include <condition_variable>
#include <cassert>
int main()
{
std::condition_variable_any cv0;
std::condition_variable_any cv1;
cv1 = cv0;
}