Skip to content

Commit e338829

Browse files
committed
Add test case for bit shift
1 parent 9174577 commit e338829

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/ui/decimal_bit_mask.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ fn main() {
9292
(x + 1) & 0xFF;
9393
(x * 2) | (y & 0xF);
9494
(x ^ y) & 0b11110000;
95+
x | (1 << 9);
9596

9697
// GOOD: Special cases
9798
x & 0; // All bits off

0 commit comments

Comments
 (0)