[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Sema / function-ptr.c
blobff852725baefb8c19b4ef89fccbfee0fca88f5e1
1 // RUN: %clang_cc1 %s -verify -pedantic
2 typedef int unary_int_func(int arg);
3 unary_int_func *func;
5 unary_int_func *set_func(void *p) {
6 func = p; // expected-warning {{converts between void pointer and function pointer}}
7 p = func; // expected-warning {{converts between void pointer and function pointer}}
9 return p; // expected-warning {{converts between void pointer and function pointer}}