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 / ovf_literal_shift.osc

6 lines · 141 bytes Raw Blame History
1// expect: OVERFLOW_UNSAFE object=y line=4
2// literal shift amount >= width.
3fn f(x: u32) -> u32 {
4 let y: u32 = x << 32;
5 return y;
6}