shithub: scc

ref: 5f0409dd660ec9a663b8d0e6ccc9664b44f2e4e3
dir: /tests/execute/0095-arrayselector.c/

View raw version
int a[] = {5, [2] = 2, 3};

int
main()
{
	if (sizeof(a) != 4*sizeof(int))
		return 1;
		
	if (a[0] != 5)
		return 2;
	if (a[1] != 0)
		return 3;
	if (a[2] != 2)
		return 4;
	if (a[3] != 3)
		return 5;
	
	return 0;
}