leo/tests/compiler/address/branch.leo

15 lines
383 B
Plaintext
Raw Normal View History

2021-07-29 02:56:05 +03:00
/*
namespace: Compile
expectation: Pass
input_file: inputs/branch.in
*/
function main (x: address, y: bool) -> bool {
2022-06-09 01:33:12 +03:00
let z: address = aleo1fj982yqchhy973kz7e9jk6er7t6qd6jm9anplnlprem507w6lv9spwvfxx;
2021-07-29 02:56:05 +03:00
if y {
2022-06-09 01:33:12 +03:00
z = aleo16s003g206rjms5pm4ak48340f7y4z4dsskuqfrd2gvqz6umh2qfq7lajfp;
2021-07-29 02:56:05 +03:00
}
2022-06-09 01:33:12 +03:00
return z == aleo1drcl2g8zxhxjzjw63ajp067gzvl94am3z7m7wgrzmr2ecd5sdq8sy66l5k;
2021-07-29 02:56:05 +03:00
}