leo/tests/compiler/integers/i64/min_fail.leo
2022-07-28 16:23:16 -07:00

10 lines
250 B
Plaintext

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