| //===----------------------------------------------------------------------===// |
| // |
| // The LLVM Compiler Infrastructure |
| // |
| // This file is dual licensed under the MIT and the University of Illinois Open |
| // Source Licenses. See LICENSE.TXT for details. |
| // |
| //===----------------------------------------------------------------------===// |
| // |
| // UNSUPPORTED: libcpp-has-no-threads |
| |
| // <thread> |
| |
| // class thread |
| // { |
| // public: |
| // typedef pthread_t native_handle_type; |
| // ... |
| // }; |
| |
| #include <thread> |
| #include <type_traits> |
| |
| int main() |
| { |
| static_assert((std::is_same<std::thread::native_handle_type, pthread_t>::value), ""); |
| } |