leo/tests/compiler/integers/i64/min_fail.leo

10 lines
250 B
Plaintext
Raw Normal View History

/*
namespace: Compile
expectation: Fail
*/
2022-07-29 02:23:16 +03:00
function main() -> i64 {
let a: i64 = -9223372036854775807i64;
return a - 2i64; // This line attempts to return -9223372036854775809i64 however, the smallest i64 value is -9223372036854775808i64.
}