//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // // class mutex; // typedef pthread_mutex_t* native_handle_type; // native_handle_type native_handle(); #include #include int main() { std::mutex m; pthread_mutex_t* h = m.native_handle(); assert(h); }