assign.fail.cpp 667 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. // UNSUPPORTED: c++98, c++03, c++11
  9. // <shared_mutex>
  10. // class shared_timed_mutex;
  11. // shared_timed_mutex& operator=(const shared_timed_mutex&) = delete;
  12. #include <shared_mutex>
  13. int main(int, char**)
  14. {
  15. std::shared_timed_mutex m0;
  16. std::shared_timed_mutex m1;
  17. m1 = m0;
  18. return 0;
  19. }