blob: af064aeee26c359c80fbe41b7419e02ac5b3b119 [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(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;
Dan Albert1d4a1ed2016-05-25 22:36:09 -070024 std::shared_mutex m1(m0);
25#else
26# error
27#endif
Marshall Clowabadb452015-06-30 14:04:14 +000028}