code wiki / (root) / _self_host_neg_li_test.nx

_self_host_neg_li_test.nx source

↩ module page · 9 lines · 209 B

1// Test that li of large negative value works through self-host. 2// expect_exit: 1 3// Returns (-30000 + 30001) = 1. 4import "nx_syscalls.nx" 5 6func main() -> i64 { 7 let x: i64 = -30000 8 return x + 30001 9}