14 lines
271 B
Plaintext
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;
|
|
}
|
|
}
|