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