code wiki / (root) / nx_mul_pair_test.nx

nx_mul_pair_test.nx source

↩ module page · 10 lines · 373 B

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