#include #include #include #ifdef ERRS #define ERR(...) __VA_ARGS__ #else #define ERR(...) #endif int main() { float * x; $\C{// x points at a floating-point number}$ void (*y)(void); $\C{// y points at a function}$ @x = y;@ $\C{// wrong}$ @y = x;@ $\C{// wrong}$ float pi = 3.14; void f( void (*g)(void) ) { g(); } @f( &pi );@ $\C{// wrong}$ } // Local Variables: // // compile-command: "sed -f sedcmd bkgd-c-tyerr.c | gcc-11 -Wall -Wextra -x c -" // // End: //