fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. const void *bar()
  4. {
  5. const char (*p)[10] = malloc(10);
  6. return p;
  7. }
  8. int main(void) {
  9. const char (*foo)[2] = (const char (*)[2])bar();
  10. return 0;
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:9:15: error: unused variable ‘foo’ [-Werror=unused-variable]
  const char (*foo)[2] = (const char (*)[2])bar();
               ^
cc1: all warnings being treated as errors
stdout
Standard output is empty