assign.fail.cpp 632 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. // <mutex>
  9. // class recursive_timed_mutex;
  10. // recursive_timed_mutex& operator=(const recursive_timed_mutex&) = delete;
  11. #include <mutex>
  12. int main(int, char**)
  13. {
  14. std::recursive_timed_mutex m0;
  15. std::recursive_timed_mutex m1;
  16. m1 = m0;
  17. return 0;
  18. }