mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-29 21:22:55 +03:00
13 lines
273 B
Plaintext
13 lines
273 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Fail
|
|
input_file: ../inputs/dummy.in
|
|
*/
|
|
|
|
function main() -> i32 {
|
|
let a: i32 = -2147483647i32;
|
|
let b: i32 = a - 1i32;
|
|
|
|
return -b; // This line attempts to return 2147483648i32 however, the largest i32 value is 2147483647i32.
|
|
}
|