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 / seed / omc / tests / struct-bool / trap_index.om
| 1 | note trap_index.om: an out-of-range run-time index into an array field next to a bool field still |
| 2 | note traps 3 (exit 103). A crash from the bool field would give 132 (SIGILL) instead. |
| 3 | struct A h uchar 4 f bool end |
| 4 | fn main to uint |
| 5 | a = new A 1 true |
| 6 | i = uint 4 |
| 7 | put a h i 1 |
| 8 | ret 0 |
| 9 | end |