scc

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

0132-forward.c (215B)


      1 struct S *x;
      2 struct S {
      3 	int i;
      4 	struct S *next;
      5 };
      6 
      7 int
      8 main(void)
      9 {
     10 	struct S y, *p;
     11 	unsigned n;
     12 
     13 	y.i = 0;
     14 	y.next = 0;
     15 	x = &y;
     16 	*x = y;
     17 
     18 	for (n = 0, p = &y; p; ++n, p = p->next)
     19 		/* nothing */;
     20 	return n;
     21 }