interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / tests / compiler / neg / oob_static_write.osc

6 lines · 152 bytes Raw Blame History
1// expect: STATIC_OUT_OF_BOUNDS object=a line=5
2// constant index outside 0..N-1 (write).
3fn f() {
4 let a: own [i64; 4] = alloc(1);
5 a[-1] = 3;
6}