1 //RUN: %clang_cc1 %s -triple spir -verify -fsyntax-only
2 //RUN: %clang_cc1 %s -triple spir -verify -fsyntax-only -DFUNCPTREXT
5 #pragma OPENCL EXTENSION __cl_clang_function_pointers : enable
6 //expected-no-diagnostics
9 // Check that pointer to member functions are diagnosed
10 // unless specific clang extension is enabled.
15 typedef void (C::*p_t)(int);
17 //expected-error@-2{{pointers to functions are not allowed}}
23 //expected-error@-2{{pointers to functions are not allowed}}