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

10 lines
223 B
Plaintext

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