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// <mutex>
13
14// template <class Mutex>
15// class lock_guard
16// {
17// public:
18//     typedef Mutex mutex_type;
19//     ...
20// };
21
22#include <mutex>
23#include <type_traits>
24
25int main()
26{
27    static_assert((std::is_same<std::lock_guard<std::mutex>::mutex_type,
28                   std::mutex>::value), "");
29}
30