mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
implement NumSub (that panics) in the dev backend
This commit is contained in:
parent
cfdfbe18a4
commit
4bcd195b92
4 changed files with 168 additions and 97 deletions
|
@ -1904,7 +1904,7 @@ fn float_add_overflow() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
||||
#[should_panic(expected = r#"Roc failed with message: "Integer subtraction overflowed!"#)]
|
||||
fn int_sub_overflow() {
|
||||
assert_evals_to!("-9_223_372_036_854_775_808 - 1", 0, i64);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue