scc

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

0166-desig.c (190B)


      1 struct S {
      2 	int a, b, c;
      3 	char d[3];
      4 	int e;
      5 } s = {
      6 	.a = 1,
      7 	.b = 2,
      8 	.d = {[0] = 3, [2] = 5},
      9 	.d = {[0] = 4, [1] = 6}
     10 };
     11 
     12 char m[] = {};
     13 
     14 int
     15 main(void)
     16 {
     17 	return sizeof(m) == s.d[2];
     18 }