aboutsummaryrefslogtreecommitdiff
path: root/test/integers.tm
diff options
context:
space:
mode:
Diffstat (limited to 'test/integers.tm')
-rw-r--r--test/integers.tm10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/integers.tm b/test/integers.tm
index 8d34dfc0..225baab5 100644
--- a/test/integers.tm
+++ b/test/integers.tm
@@ -17,6 +17,16 @@ func main():
>> 1 << 10
= 1024
+ !! Signed and unsigned bit shifting:
+ >> -2[64] << 1
+ = -4[64]
+ >> -2[64] <<[u] 1
+ = -4[64]
+ >> -2[64] >> 1
+ = -1[64]
+ >> -2[64] >>[u] 1
+ = 9223372036854775807[64]
+
>> 3 and 2
= 2