Sort of
$ cat lol.c
#include <stdio.h>
#include </dev/tty>
$ gcc lol.c
int main() { printf("lol\n"); } // hit Ctrl+D
$ ./a.out
lol