scc

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

0144-long-const.c (305B)


      1 int
      2 main(void)
      3 {
      4 	long i;
      5 	unsigned long u;
      6 
      7 	i = 1;
      8 	i = -1;
      9 	i = -1l;
     10 	i = -1u;
     11 	i = -1ll;
     12 	i = (1ll << 32) - 1 & 3;
     13 	i = (long) ((1ll << 32) - 1) < 0;
     14 	i = -1u < 0;
     15 
     16 	u = 1;
     17 	u = -1;
     18 	u = -1l;
     19 	u = -1u;
     20 	u = -1ll;
     21 	u = (1ll << 32) - 1 & 3;
     22 	u = (long) ((1ll << 32) - 1) < 0;
     23 	u = -1u < 0;
     24 	return 0;
     25 }