code wiki / (root) / nx_or_pair_test.nx

nx_or_pair_test.nx source

↩ module page · 10 lines · 372 B

1// AUTO-GENERATED test from shape `scalar_pair_op`. 2import "nx_syscalls.nx" 3import "nx_or_pair.nx" 4 5func main() -> nx_int { 6 if nx_or_pair(5, 3) != 7 { return __syscall(93, 1, 0, 0, 0, 0, 0) } 7 if nx_or_pair(255, 15) != 255 { return __syscall(93, 2, 0, 0, 0, 0, 0) } 8 if nx_or_pair(0, 42) != 42 { return __syscall(93, 3, 0, 0, 0, 0, 0) } 9 return 0 10}