int my_type = 0; void foo(my_type* p);
Standard input is empty
prog.cpp:3:10: error: variable or field ‘foo’ declared void
void foo(my_type* p);
^~~~~~~
prog.cpp:3:19: error: ‘p’ was not declared in this scope
void foo(my_type* p);
^
Standard output is empty