aboutsummaryrefslogtreecommitdiff
path: root/tests/langerrors/const_index.zc
blob: ea999869a95b9b9de4ca46ca0876d24e3ef87362 (plain) (blame)
1
2
3
4
namespace;

// expect: the index is out of range for this array
fn main() { int[4] a; a[4] = 1; return 0; }