leo/tests/compiler/integers/u8/shl.leo

10 lines
167 B
Plaintext
Raw Normal View History

2022-06-17 02:45:37 +03:00
/*
namespace: Compile
expectation: Pass
input_file: inputs/add.in
*/
function main(a: u8, b: u8, c: u8) -> bool {
return a << b == a << 2u16 && a << 2u32 == c;
}