blob: 83e4d74b6ad19a48be6f3fc016fe739f99e67740 [file] [log] [blame]
Chris Lattnerbfe639e2008-01-03 22:56:36 +00001// RUN: clang %s -verify -pedantic
2typedef 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* and function pointer}}
7 p = func; // expected-warning {{converts between void* and function pointer}}
8
9 return p; // expected-warning {{converts between void* and function pointer}}
10}
11