scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

0225-func.c (149B)


      1 int
      2 main(void)
      3 {
      4 	const char *p = __func__;
      5 	int i;
      6 
      7 	for (i = 0; i < sizeof(__func__); i++) {
      8 		if (p[i] != "main"[i])
      9 			return 1;
     10 	}
     11 	return 0;
     12 }