scc

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

0192-ptrcmp.c (209B)


      1 struct ptrs {
      2 	unsigned char *rp;
      3 	unsigned char *wp;
      4 };
      5 
      6 struct ptrs iob[2]; 
      7  
      8 int 
      9 main() 
     10 {
     11 	static unsigned char buf[10];
     12 
     13 	iob[0].rp = buf;
     14 	iob[0].wp = buf+2;
     15 
     16 	return (&iob[0])->rp >= (&iob[0])->wp;
     17 }