implement NumSub (that panics) in the dev backend

This commit is contained in:
Folkert 2024-01-02 19:46:03 +01:00
parent cfdfbe18a4
commit 4bcd195b92
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
4 changed files with 168 additions and 97 deletions

View file

@ -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);