nx_and_pair_test.nx source
↩ module page · 10 lines · 375 B
1// AUTO-GENERATED test from shape `scalar_pair_op`.
2import "nx_syscalls.nx"
3import "nx_and_pair.nx"
4
5func main() -> nx_int {
6 if nx_and_pair(5, 3) != 1 { return __syscall(93, 1, 0, 0, 0, 0, 0) }
7 if nx_and_pair(255, 15) != 15 { return __syscall(93, 2, 0, 0, 0, 0, 0) }
8 if nx_and_pair(0, 255) != 0 { return __syscall(93, 3, 0, 0, 0, 0, 0) }
9 return 0
10}