leo/tests/compiler/function/return.leo

14 lines
184 B
Plaintext
Raw Normal View History

2021-05-05 18:29:44 +03:00
/*
namespace: Compile
expectation: Pass
input_file: inputs/dummy.in
2021-05-05 18:29:44 +03:00
*/
function one() -> u32 {
return 1u32;
}
function main(y: bool) -> bool {
2021-07-01 23:40:29 +03:00
return (one() == 1u32) == y;
2021-05-05 18:29:44 +03:00
}