1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 // expected-no-diagnostics 3 typedef void (*thread_continue_t)(); 4 5 extern "C" { 6 extern void kernel_thread_start(thread_continue_t continuation); 7 extern void pure_c(void); 8 } 9 10 class _IOConfigThread { 11 public: 12 static void main( void ); 13 }; 14 15 foo(void)16void foo( void ) { 17 kernel_thread_start(&_IOConfigThread::main); 18 kernel_thread_start((thread_continue_t)&_IOConfigThread::main); 19 kernel_thread_start(&pure_c); 20 } 21