shithub: scc

ref: 5f0409dd660ec9a663b8d0e6ccc9664b44f2e4e3
dir: /tests/execute/0163-array.c/

View raw version
struct S {int a; int b;};
struct S arr[2] = {[1] = {3, 4}, [0] = {1, 2}};

int
main()
{
	if(arr[0].a != 1)
		return 1;
	if(arr[0].b != 2)
		return 2;
	if(arr[1].a != 3)
		return 3;
	if(arr[1].b != 4)
		return 4;
	return 0;
}