assign.fail.cpp 666 B

12345678910111213141516171819202122232425
  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& operator=(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;
  17. cv1 = cv0;
  18. return 0;
  19. }