scc

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

0177-literal.c (199B)


      1 int
      2 cmp(int *v)
      3 {
      4 	if (v[0] != 1)
      5 		return 1;
      6 	if (v[1] != 2)
      7 		return 2;
      8 	if (v[2] != 3)
      9 		return 3;
     10 	if (v[3] != 4)
     11 		return 4;
     12 	return 0;
     13 }
     14 
     15 int
     16 main(void)
     17 {
     18 	return cmp((int []) {1, 2, 3, 4});
     19 }