scc

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

0076-ptrsubasn.c (117B)


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