1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // <shared_mutex> 11 12 // class shared_mutex; 13 14 // shared_mutex& operator=(const shared_mutex&) = delete; 15 16 #include <shared_mutex> 17 18 #include "test_macros.h" 19 main()20int main() 21 { 22 #if TEST_STD_VER > 14 23 std::shared_mutex m0; 24 std::shared_mutex m1; 25 m1 = m0; 26 #else 27 # error 28 #endif 29 } 30