scc

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

0137-int_cast.c (1068B)


      1 int a;
      2 unsigned b;
      3 char c;
      4 signed char d;
      5 unsigned char e;
      6 long f;
      7 unsigned long g;
      8 long long h;
      9 unsigned long long i;
     10 short j;
     11 unsigned short k;
     12 
     13 int
     14 main(void)
     15 {
     16 	a = b;
     17 	a = c;
     18 	a = d;
     19 	a = e;
     20 	a = f;
     21 	a = g;
     22 	a = h;
     23 	a = i;
     24 	a = j;
     25 	a = k;
     26 
     27 	b = a;
     28 	b = c;
     29 	b = d;
     30 	b = e;
     31 	b = f;
     32 	b = g;
     33 	b = h;
     34 	b = i;
     35 	b = j;
     36 	b = k;
     37 
     38 	c = a;
     39 	c = b;
     40 	c = d;
     41 	c = e;
     42 	c = f;
     43 	c = g;
     44 	c = h;
     45 	c = i;
     46 	c = j;
     47 	c = k;
     48 
     49 	d = a;
     50 	d = b;
     51 	d = c;
     52 	d = e;
     53 	d = f;
     54 	d = g;
     55 	d = h;
     56 	d = i;
     57 	d = j;
     58 	d = k;
     59 
     60 	e = a;
     61 	e = b;
     62 	e = c;
     63 	e = d;
     64 	e = f;
     65 	e = g;
     66 	e = h;
     67 	e = i;
     68 	e = j;
     69 	e = k;
     70 
     71 	f = a;
     72 	f = b;
     73 	f = c;
     74 	f = d;
     75 	f = e;
     76 	f = g;
     77 	f = h;
     78 	f = i;
     79 	f = j;
     80 	f = k;
     81 
     82 	g = a;
     83 	g = b;
     84 	g = c;
     85 	g = d;
     86 	g = e;
     87 	g = f;
     88 	g = h;
     89 	g = i;
     90 	g = j;
     91 	g = k;
     92 
     93 	h = a;
     94 	h = b;
     95 	h = c;
     96 	h = d;
     97 	h = e;
     98 	h = f;
     99 	h = g;
    100 	h = i;
    101 	h = j;
    102 	h = k;
    103 
    104 	i = a;
    105 	i = b;
    106 	i = c;
    107 	i = d;
    108 	i = e;
    109 	i = f;
    110 	i = g;
    111 	i = h;
    112 	i = j;
    113 	i = k;
    114 
    115 	j = a;
    116 	j = b;
    117 	j = c;
    118 	j = d;
    119 	j = e;
    120 	j = f;
    121 	j = g;
    122 	j = h;
    123 	j = i;
    124 	j = k;
    125 
    126 	k = a;
    127 	k = b;
    128 	k = c;
    129 	k = d;
    130 	k = e;
    131 	k = f;
    132 	k = g;
    133 	k = h;
    134 	k = j;
    135 	k = i;
    136 
    137 	return 0;
    138 }