fork download
  1. #include <stdio.h>
  2. int main(void) {
  3. void* a;
  4. int* b=a;
  5. int(*c)()=a;
  6. puts("test call");
  7. return 0;
  8. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:5:12: error: ISO C forbids initialization between function pointer and 'void *' [-Werror=pedantic]
  int(*c)()=a;
            ^
prog.c:5:7: error: unused variable 'c' [-Werror=unused-variable]
  int(*c)()=a;
       ^
prog.c:4:7: error: unused variable 'b' [-Werror=unused-variable]
  int* b=a;
       ^
prog.c:4:7: error: 'a' is used uninitialized in this function [-Werror=uninitialized]
cc1: all warnings being treated as errors
stdout
Standard output is empty