1 // RUN
: %clang_cc1 %s -verify -pedantic -fsyntax-only
7 // declaring a function pointer is an error
8 void
(*fptr
)(int); // expected-error{{pointers to functions are not allowed}}
10 // taking the address of a function is an error
11 foo
((void*)foo
); // expected-error{{taking address of function is not allowed}}
12 foo
(&foo
); // expected-error{{taking address of function is not allowed}}
14 // just calling a function is correct