scc

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

0132-forward.c (202B)


      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 		;
     20 	return n;
     21 }