aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/uninit_partial_array.zc
blob: d30310f386a19b019e0570e1a8c3037f82703d8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
namespace;
include rt;

// expect: a: used before it is initialized
fn main() {
	int[4] a;
	a[0] = 1;
	rt.put_n(a[1]);
	return 0;
}