code wiki / (root) / nx_xor_pair_test.nx

nx_xor_pair_test.nx source

↩ module page · 10 lines · 374 B

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