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 / ng / a64 / tests / macho / badfd.om
| 1 | note write to a descriptor that is not open: the count is minus errno (EBADF is 9 on Linux and on Darwin), so status 9 |
| 2 | fn main to int |
| 3 | b = new uchar 4 65 |
| 4 | k = write 9 b 0 1 |
| 5 | ret int sub 0 k |
| 6 | end |