scc

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

0049-inits.c (137B)


      1 struct S {int a; int b;};
      2 struct S s = { .b = 2, .a = 1};
      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 }