1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: libcpp-has-no-threads, libcpp-has-thread-api-external
12 // <condition_variable>
14 // class condition_variable;
16 // typedef pthread_cond_t* native_handle_type;
17 // native_handle_type native_handle();
19 #include <condition_variable>
24 static_assert((std::is_same<std::condition_variable::native_handle_type,
25 pthread_cond_t*>::value), "");
26 std::condition_variable cv;
27 std::condition_variable::native_handle_type h = cv.native_handle();