mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-26 03:33:44 +03:00
15 lines
397 B
Plaintext
15 lines
397 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file: ../inputs/dummy.in
|
|
*/
|
|
|
|
program test.aleo {
|
|
// TODO: This test passes, but constant propogation should detect an overflow.
|
|
|
|
transition main(y: bool) -> i32 {
|
|
let a: i32 = -2147483647i32;
|
|
|
|
return a - 2i32; // This line attempts to return -2147483649i32 however, the smallest i32 value is -2147483648i32.
|
|
}}
|