opnsense-src/test/SemaCXX/member-expr-static.cpp

20 lines
424 B
C++
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
2009-06-02 13:58:47 -04:00
typedef void (*thread_continue_t)();
extern "C" {
2009-10-14 14:03:49 -04:00
extern void kernel_thread_start(thread_continue_t continuation);
extern void pure_c(void);
2009-06-02 13:58:47 -04:00
}
2009-10-14 14:03:49 -04:00
class _IOConfigThread {
2009-06-02 13:58:47 -04:00
public:
2009-10-14 14:03:49 -04:00
static void main( void );
2009-06-02 13:58:47 -04:00
};
2009-10-14 14:03:49 -04:00
void foo( void ) {
kernel_thread_start(&_IOConfigThread::main);
kernel_thread_start((thread_continue_t)&_IOConfigThread::main);
kernel_thread_start(&pure_c);
2009-06-02 13:58:47 -04:00
}