brintos

brintos / llvm-project-archived public Read only

0
0
Text · 398 B · ff85272 Raw
12 lines · c
1// RUN: %clang_cc1 %s -verify -pedantic2typedef int unary_int_func(int arg);3unary_int_func *func;4 5unary_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}}8 9 return p; // expected-warning {{converts between void pointer and function pointer}}10}11 12