leo/tests/compiler/integers/i32/min.leo

11 lines
172 B
Plaintext
Raw Normal View History

2021-05-10 20:19:19 +03:00
/*
namespace: Compile
expectation: Pass
input_file: inputs/add.in
2021-05-10 20:19:19 +03:00
*/
function main(a: i32) -> i32 {
let b: i32 = -2147483647i32;
2022-07-29 02:23:16 +03:00
return b - a; // -2147483648i32
2021-05-10 20:19:19 +03:00
}