leo/tests/compiler/integers/u64/pow.leo

13 lines
221 B
Plaintext
Raw Normal View History

/*
namespace: Compile
2022-06-17 02:45:37 +03:00
expectation: Pass
input_file: inputs/pow.in
2022-06-14 00:53:01 +03:00
# The exponent must be u8, u16, or u32
*/
@program
2021-05-10 21:11:31 +03:00
function main(a: u64, b: u64, c: u64) -> bool {
2022-06-17 02:45:37 +03:00
return a ** 2u8 == a ** 2u16 && a ** 2u32 == c;
2021-05-10 21:11:31 +03:00
}