copy.fail.cpp 645 B

123456789101112131415161718192021222324
  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. // <condition_variable>
  9. // class condition_variable;
  10. // condition_variable(const condition_variable&) = delete;
  11. #include <condition_variable>
  12. #include <cassert>
  13. int main(int, char**)
  14. {
  15. std::condition_variable cv0;
  16. std::condition_variable cv1(cv0);
  17. return 0;
  18. }