mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-26 11:45:00 +03:00
15 lines
327 B
Plaintext
15 lines
327 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file: ../inputs/dummy.in
|
|
*/
|
|
|
|
// TODO: This test passes, but constant propogation should detect an overflow.
|
|
|
|
@program
|
|
function main(y: bool) -> i16 {
|
|
let a: i16 = -32768i16;
|
|
|
|
return -a; // This line attempts to return 32768i16 however, the largest i16 value is 32767i16.
|
|
}
|