aboutsummaryrefslogtreecommitdiff
path: root/tests/programs/o3_bounds.zc
blob: fb347c00a21a99f3d7e604ba9d07854545a0e61a (plain) (blame)
1
2
// an index outside a []T inside o3 code: caught by the inline check
fn main() { []int a = new([]int, 5); o3 { int i = 7; a[i] = 1; } free(d*a); return 0; }