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