scc

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

0155-struct_compl.c (143B)


      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;} x;
     11 
     12 int foo()
     13 {
     14 	x.v = 0;
     15 	return x.v;
     16 }