leo/tests/parser/expression/binary/shl.leo
2022-06-16 13:22:32 -07:00

28 lines
361 B
Plaintext

/*
namespace: ParseExpression
expectation: Pass
*/
1u8 << 1u8
2u8<<3u8
1u8 << 2u8 << 3u8
1u8 + 2u8 << 3u8 + 4u8
1u8 << 2u8 << 3u8
1u8 + 2u8 << 3u8 + 4u8 << 5u8 + 6u8
!-x.shl(y)
x.shl(y).shl(y).shl(y)
-x.shl(y)
(-x).shl(y)
-(x.shl(y))
(-x.shl(y)).shl(y)
!x.shl(y)
(!x).shl(y)
!(x.shl(y))
(!x.shl(y)).shl(y)
(x.shl(y) << x.shl(y)).shl(x.shl(y) << x.shl(y))