2024-02-27 10:58:05 -06:00

14 lines
271 B
Plaintext

const Error = error{
unexpected_result,
};
const main = fn() Error!void {
const a: u32 = 0xffff;
const b: u32 = 0xffff0000;
const c: u32 = 0xffffffff;
const result = c - (a | b);
if (result != 0) {
return Error.unexpected_result;
}
}