blob: 7bcb2d61379a232c6e80ee7c23a658df1b1a104d [file] [log] [blame]
Marshall Clowabadb452015-06-30 14:04:14 +00001//===----------------------------------------------------------------------===//
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
Dan Albert1d4a1ed2016-05-25 22:36:09 -070018#include "test_macros.h"
19
Marshall Clowabadb452015-06-30 14:04:14 +000020int main()
21{
Dan Albert1d4a1ed2016-05-25 22:36:09 -070022#if TEST_STD_VER > 14
Marshall Clowabadb452015-06-30 14:04:14 +000023 std::shared_mutex m0;
24 std::shared_mutex m1;
Dan Albert1d4a1ed2016-05-25 22:36:09 -070025 m1 = m0;
26#else
27# error
28#endif
Marshall Clowabadb452015-06-30 14:04:14 +000029}