omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
omega-bridge / tests / native / x86 / outtrap.om
| 1 | note Lowering top for an ABI-v2 out must not lower the true stack floor. |
| 2 | om2 |
| 3 | fn outleaf x ulong to ulong |
| 4 | ret add x 1 |
| 5 | end |
| 6 | fn outmid x ulong to ulong |
| 7 | ret outleaf x |
| 8 | end |
| 9 | export fn outtrap o out uchar 64 to ulong |
| 10 | put o 0 1 |
| 11 | ret outmid 0 |
| 12 | end |