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 // UNSUPPORTED: libcpp-has-no-threads
11 
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 
main()25 int main()
26 {
27 #if _LIBCPP_STD_VER > 11
28     static_assert((std::is_same<std::shared_lock<std::mutex>::mutex_type,
29                    std::mutex>::value), "");
30 #endif  // _LIBCPP_STD_VER > 11
31 }
32