summary refs log tree commit diff stats
path: root/tests/stdlib/t21564.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/t21564.nim')
-rw-r--r--tests/stdlib/t21564.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/stdlib/t21564.nim b/tests/stdlib/t21564.nim
index cb06155cf..0a5777d12 100644
--- a/tests/stdlib/t21564.nim
+++ b/tests/stdlib/t21564.nim
@@ -22,6 +22,10 @@ proc main() =
     # test `bitops.toMask` patch via bitops.masked
     doAssert(0x12FFFF34.masked(8..23) == 0x00FFFF00)
 
+  block: # bug #22687
+    var a: uint8 = 0b1111_1111
+    doAssert a.bitsliced(4..7).int == 15
+
 main()
 
 static: