145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org//===----------------------------------------------------------------------===//
245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org//
345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org//                     The LLVM Compiler Infrastructure
445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org//
545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org// This file is dual licensed under the MIT and the University of Illinois Open
645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org// Source Licenses. See LICENSE.TXT for details.
745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org//
845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org//===----------------------------------------------------------------------===//
945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
1045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org// <mutex>
1145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
1245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org// class recursive_mutex;
1345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
1445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org// recursive_mutex& operator=(const recursive_mutex&) = delete;
1545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
1645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#include <mutex>
1745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org
1845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgint main()
1945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org{
2045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org    std::recursive_mutex m0;
2145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org    std::recursive_mutex m1;
2245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org    m1 = m0;
2345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org}
2445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org