leo/tests/compiler/integers/i32/min_fail.leo

10 lines
223 B
Plaintext
Raw Normal View History

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