scc

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

0251-mul.c (159B)


      1 int
      2 main(void)
      3 {
      4 	int a = -2;
      5 	unsigned b = 2;
      6 
      7 	if (!(a * 2 == -4))
      8 		return 1;
      9 	if (!(b * 2 == 4))
     10 		return 2;
     11 	if (!(b * 8 == 16))
     12 		return 3;
     13 	return 0;
     14 }