scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

0037-assignop.c (158B)


      1 int
      2 main()
      3 {
      4 	int x;
      5 	
      6 	x = 0;
      7 	x += 2;
      8 	x += 2;
      9 	if (x != 4)
     10 		return 1;
     11 	x -= 1;
     12 	if (x != 3)
     13 		return 2;
     14 	x *= 2;
     15 	if (x != 6)
     16 		return 3;
     17 		
     18 	return 0;
     19 }