Skip to content

Commit

Permalink
LLVM: test exit codes are taken mod 256
Browse files Browse the repository at this point in the history
  • Loading branch information
OsamaAhmad00 authored and i3abghany committed Oct 28, 2023
1 parent affe061 commit 1cb4fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/code_generation/llvm/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ mod tests {
code_generation::llvm::generator::LLVMGenerator::new(&mut context).generate(&ast);
let exit_code = interpret_llvm_ir(&generated_ir);
assert_eq!(
test_case.expected, exit_code,
test_case.expected % 256, exit_code % 256,
"Test case: {} -- Expected: {}, found: {}\nGenerated IR:\n{}",
test_case.name, test_case.expected, exit_code, generated_ir
);
Expand Down

0 comments on commit 1cb4fe3

Please sign in to comment.