summaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/member-expr-static.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/member-expr-static.cpp')
-rw-r--r--clang/test/SemaCXX/member-expr-static.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/member-expr-static.cpp b/clang/test/SemaCXX/member-expr-static.cpp
new file mode 100644
index 0000000..7ed60f7
--- /dev/null
+++ b/clang/test/SemaCXX/member-expr-static.cpp
@@ -0,0 +1,19 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+typedef void (*thread_continue_t)();
+
+extern "C" {
+ extern void kernel_thread_start(thread_continue_t continuation);
+ extern void pure_c(void);
+}
+
+class _IOConfigThread {
+public:
+ static void main( void );
+};
+
+
+void foo( void ) {
+ kernel_thread_start(&_IOConfigThread::main);
+ kernel_thread_start((thread_continue_t)&_IOConfigThread::main);
+ kernel_thread_start(&pure_c);
+}