#include <memory.h> void m() { int (*f)() = 0; int *o=(int*)f; } void g() { int (*f)() = 0; int *o; }
Standard input is empty
prog.c: In function ‘m’: prog.c:5:8: error: ISO C forbids conversion of function pointer to object pointer type [-Werror=edantic] prog.c:5:6: error: unused variable ‘o’ [-Werror=unused-variable] cc1: all warnings being treated as errors
Standard output is empty