scc

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

0164-struct.c (145B)


      1 struct S { int a; int b; };
      2 struct S *s = &(struct S) { 1, 2 };
      3 
      4 int
      5 main()
      6 {
      7 	if(s->a != 1)
      8 		return 1;
      9 	if(s->b != 2)
     10 		return 2;
     11 	return 0;
     12 }