scc

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

0018-structptr.c (120B)


      1 int
      2 main()
      3 {
      4 
      5 	struct S { int x; int y; } s;
      6 	struct S *p;
      7 
      8 	p = &s;	
      9 	s.x = 1;
     10 	p->y = 2;
     11 	return p->y + p->x - 3; 
     12 }
     13