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 // class mutex;
15
16 // typedef pthread_mutex_t* native_handle_type;
17 // native_handle_type native_handle();
18
19 #include <mutex>
20 #include <cassert>
21
main()22 int main()
23 {
24 std::mutex m;
25 pthread_mutex_t* h = m.native_handle();
26 assert(h);
27 }
28