scc

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

0155-struct-compl.c (141B)


      1 extern struct X x;
      2 int foo();
      3 
      4 int main()
      5 {
      6 	extern struct X x;
      7 	return &x != 0;
      8 }
      9 
     10 struct X {int v;};
     11 
     12 int foo()
     13 {
     14 	x.v = 0;
     15 	return x.v;
     16 }