leo/tests/compiler/integers/u16/gt.leo

28 lines
421 B
Plaintext
Raw Normal View History

2021-05-10 21:11:31 +03:00
/*
namespace: Compile
expectation: Pass
inputs:
- u16_g.in: |
[main]
a: u16 = 3u16;
b: u16 = 2u16;
2021-05-10 21:11:31 +03:00
c: bool = true;
[registers]
r0: bool = true;
- u16_f.in: |
[main]
a: u16 = 1u16;
b: u16 = 2u16;
2021-05-10 21:11:31 +03:00
c: bool = false;
[registers]
r0: bool = true;
*/
function main(a: u16, b: u16, c: bool) -> bool {
let ret: bool = a > b == c;
console.assert(ret);
return ret;
2021-05-10 21:11:31 +03:00
}