scc

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

0269-extern.c (199B)


      1 extern unsigned char tbl[];
      2 
      3 unsigned char tbl[8] =  {
      4 	1, 0, 2, 0,
      5 };
      6 
      7 unsigned char c = 3;
      8 
      9 int
     10 main(void)
     11 {
     12 	if (tbl[0] != 1 || tbl[2] != 2)
     13 		return 1;
     14 	if (tbl[4] != 0)
     15 		return 2;
     16 	return 0;
     17 }