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
omega-mv / tests / compiler / neg / st_oob_field.osc
| 1 | // expect: STATIC_OUT_OF_BOUNDS object=a.v line=6 |
| 2 | // transition: index outside 0..N-1 |
| 3 | struct A { v: [u8; 2] } |
| 4 | fn f() -> u8 { |
| 5 | let a: own A = A { v: [1; 2] }; |
| 6 | return a.v[2]; |
| 7 | } |