copy.fail.cpp 582 B

1234567891011121314151617181920212223
  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_mutex;
  10. // recursive_mutex(const recursive_mutex&) = delete;
  11. #include <mutex>
  12. int main(int, char**)
  13. {
  14. std::recursive_mutex m0;
  15. std::recursive_mutex m1(m0);
  16. return 0;
  17. }