leo/tests/compiler/integers/i16/gt.leo

19 lines
282 B
Plaintext
Raw Normal View History

2021-05-03 17:28:53 +03:00
/*
namespace: Compile
expectation: Pass
inputs:
- i16.in: |
[main]
a: i16 = 4;
b: i16 = 1;
c: bool = true;
- i16_false: |
[main]
a: i16 = 1;
b: i16 = 2;
c: bool = false;
*/
2020-07-31 02:20:31 +03:00
function main(a: i16, b: i16, c: bool) {
2020-08-17 05:14:26 +03:00
console.assert(a > b == c);
2020-07-16 07:55:45 +03:00
}