code wiki / (root) / _self_host_shift32_test.nx

_self_host_shift32_test.nx source

↩ module page · 9 lines · 228 B

1import "nx_syscalls.nx" 2// expect_exit: 1 3 4// Bisect: is the bug specifically about shift >= 32? 5// (1 << 32) low 8 bits = 0. (1 << 32) >> 32 = 1. exit = 1. 6func main() -> i64 { 7 let x: i64 = (1 << 32) >> 32 8 return x 9}