Home
       0132-forward.c - scc - simple c99 compiler
  HTML git clone git://git.simple-cc.org/scc
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
       0132-forward.c (204B)
       ---
            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-1;
           21 }