[mlir] Update Ch-2.md (#121379)
[llvm-project.git] / libcxx / test / std / thread / thread.condition / thread.condition.condvar / copy.compile.fail.cpp
blobf9d6076579202c8db4464c03918fc8bbe4000db9
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 // <condition_variable>
11 // class condition_variable;
13 // condition_variable(const condition_variable&) = delete;
15 #include <condition_variable>
16 #include <cassert>
18 int main(int, char**)
20 std::condition_variable cv0;
21 std::condition_variable cv1(cv0);
23 return 0;