shithub: scc

ref: 541539b33afc0c198e44ecce36b6b0f2030c6b3b
dir: /tests/cc/execute/0038-ptradd.c/

View raw version
int
main()
{
	int x[2];
	int *p;
	
	x[1] = 7;
	p = &x[0];
	p = p + 1;
	
	if(*p != 7)
		return 1;
	if(&x[1] - &x[0] != 1)
		return 1;
	
	return 0;
}