leo/tests/compiler/integers/i8/negate_zero.leo

15 lines
214 B
Plaintext
Raw Normal View History

2021-05-03 17:28:53 +03:00
/*
namespace: Compile
expectation: Pass
input_file:
- ../inputs/dummy.in
2021-05-03 17:28:53 +03:00
*/
2022-10-06 02:53:49 +03:00
program test.aleo {
transition main(y: bool) -> bool {
const a: i8 = 0i8;
return (-a == 0i8) == y;
}
2021-05-10 20:19:19 +03:00
}