mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-31 09:07:21 +00:00
implement panic on overflow for mul in the dev backend
This commit is contained in:
parent
865eff1956
commit
cfdfbe18a4
5 changed files with 71 additions and 9 deletions
|
@ -1989,7 +1989,7 @@ fn float_sub_checked() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-dev", feature = "gen-wasm"))]
|
||||
#[should_panic(expected = r#"Roc failed with message: "Integer multiplication overflowed!"#)]
|
||||
fn int_positive_mul_overflow() {
|
||||
assert_evals_to!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue