Tcc even supports that with `#!/usr/local/bin/tcc -run`, although I don't understand people who use c or go for "scripting", when python, ruby, TCL or perl have much superior ergonomics.
The main reason was to do all this without any dependencies beyond a C compiler and some POSIX standard library.