scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | 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 }