summaryrefslogtreecommitdiff
path: root/tests/semantic/constant-reassignment-element.test
blob: 4a87d7d6c514567901f306b02a3c94259d720758 (plain)
1
2
3
4
5
6
7
8
9
10
Invalid Code

struct Foo {
	int i;
}

void main () {
	const Foo[] foo = { { 23 } };
	foo[0].i = 42;
}