scc

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

0038-ptradd.c (148B)


      1 int
      2 main()
      3 {
      4 	int x[2];
      5 	int *p;
      6 	
      7 	x[1] = 7;
      8 	p = &x[0];
      9 	p = p + 1;
     10 	
     11 	if(*p != 7)
     12 		return 1;
     13 	if(&x[1] - &x[0] != 1)
     14 		return 1;
     15 	
     16 	return 0;
     17 }