scc

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

0210-flexible.c (169B)


      1 struct str {
      2 	int a;
      3 	char v[];
      4 };
      5 
      6 int
      7 main(void)
      8 {
      9 	struct str *p;
     10 	int ary[20];
     11 
     12 	p = (struct str *) ary;
     13 	p->a = 2;
     14 	p->v[0] = 1;
     15 
     16 	return !(p->a + p->v[0] == 3);
     17 }