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, libcpp-has-thread-api-external 11 // REQUIRES: libcpp-has-thread-api-pthread 12 13 // <thread> 14 15 // class thread 16 // { 17 // public: 18 // typedef pthread_t native_handle_type; 19 // ... 20 // }; 21 22 #include <thread> 23 #include <type_traits> 24 25 int main() 26 { 27 static_assert((std::is_same<std::thread::native_handle_type, pthread_t>::value), ""); 28 } 29