shithub: scc

ref: 68fc5b73b8cc4ba666d8d30d74762c71a0653a9d
dir: /tests/cc/execute/0094-arrayinit.c/

View raw version
typedef struct {
	int v;
	int sub[2];
} S;

S a[1] = {{1, {2, 3}}};

int
main()
{
	if (a[0].v != 1)
		return 1;
	if (a[0].sub[0] != 2)
		return 2;
	if (a[0].sub[1] != 3)
		return 3;
	
	return 0;
}