shithub: scc

ref: 994751d39485e086ef623f202fb1b84729fd5d19
dir: /tests/cc/execute/0166-desig.c/

View raw version
struct S {
	int a, b, c;
	char d[3];
	int e;
} s = {
	.a = 1,
	.b = 2,
	.d = {[0] = 3, [2] = 5},
	.d = {[0] = 4, [1] = 6}
};

char m[] = {};

int
main(void)
{
	return sizeof(m) == s.d[2];
}