leo/tests/compiler/field/pow.leo

12 lines
204 B
Plaintext
Raw Normal View History

2022-05-06 01:44:33 +03:00
/*
namespace: Compile
expectation: Pass
input_file:
- inputs/fields.in
*/
@program
2022-05-06 01:44:33 +03:00
function main(a: field) -> bool {
const negOneField: field = -1field;
2022-06-14 00:53:01 +03:00
return negOneField ** 2field == 1field;
2022-05-06 01:44:33 +03:00
}