test42
auto test42 =
q{--- test42
// Test bit-wise negation, unary minus, xor, or, and operators
i32 not(i32 a) {
return ~a;
}
i32 neg(i32 a) {
return -a;
}
i32 xor(i32 a, i32 b) {
return a ^ b;
}
i32 or(i32 a, i32 b) {
return a | b;
}
i32 and(i32 a, i32 b) {
return a & b;
}
};
tests passing
functionsvariables