blob: c153b455f404d010352dc004989157db17f1bf58 [file] [log] [blame]
Howard Hinnantba898e42013-09-21 01:49:28 +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//===----------------------------------------------------------------------===//
Jonathan Roelofs8d86b2e2014-09-05 19:45:05 +00009//
10// UNSUPPORTED: libcpp-has-no-threads
Howard Hinnantba898e42013-09-21 01:49:28 +000011
12// <shared_mutex>
13
14// template <class Mutex>
15// class shared_lock
16// {
17// public:
18// typedef Mutex mutex_type;
19// ...
20// };
21
22#include <shared_mutex>
23#include <type_traits>
24
25int main()
26{
Dan Albert1d4a1ed2016-05-25 22:36:09 -070027#if _LIBCPP_STD_VER > 11
Howard Hinnantba898e42013-09-21 01:49:28 +000028 static_assert((std::is_same<std::shared_lock<std::mutex>::mutex_type,
29 std::mutex>::value), "");
Dan Albert1d4a1ed2016-05-25 22:36:09 -070030#endif // _LIBCPP_STD_VER > 11
Howard Hinnantba898e42013-09-21 01:49:28 +000031}