blob: f555d3de5ee0599afcb0290a7c2c9a65b1605d68 [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
Eric Fiseliera73d0922015-08-22 21:24:01 +000011// UNSUPPORTED: c++98, c++03, c++11
12
Howard Hinnantba898e42013-09-21 01:49:28 +000013
14// <shared_mutex>
15
16// template <class Mutex>
17// class shared_lock
18// {
19// public:
20// typedef Mutex mutex_type;
21// ...
22// };
23
24#include <shared_mutex>
25#include <type_traits>
26
27int main()
28{
Howard Hinnantba898e42013-09-21 01:49:28 +000029 static_assert((std::is_same<std::shared_lock<std::mutex>::mutex_type,
30 std::mutex>::value), "");
Howard Hinnantba898e42013-09-21 01:49:28 +000031}