Skip to content
Snippets Groups Projects
Commit e421e0148044 authored by Stefan Behnel's avatar Stefan Behnel
Browse files

Add failing test for GH-2670.

parent a0e6de2c6733
No related branches found
No related tags found
No related merge requests found
# mode: run
def f():
"""
>>> f()
......@@ -32,3 +34,24 @@
int1 ^= int2 << int3 | int2 >> int3
long1 = char1 | int1
return int1, long1
def long_int_shift():
"""
>>> long_int_shift()
80082
10010
10010
10010
10010
"""
value = 80082 # int using more than 2 bytes == long
print(value)
shiftedby3 = value >> 3
dividedby8 = value // 8
print(shiftedby3)
print(dividedby8)
shiftedby3 = 80082 >> 3
dividedby8 = 80082 // 8
print(shiftedby3)
print(dividedby8)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment