[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCXX / member-expr-static.cpp
blobd4c6c0b6da2f552dbb1117234e73dd9c368f5075
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 typedef void (*thread_continue_t)();
5 extern "C" {
6 extern void kernel_thread_start(thread_continue_t continuation);
7 extern void pure_c(void);
10 class _IOConfigThread {
11 public:
12 static void main( void );
16 void foo( void ) {
17 kernel_thread_start(&_IOConfigThread::main);
18 kernel_thread_start((thread_continue_t)&_IOConfigThread::main);
19 kernel_thread_start(&pure_c);