Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
cython
Commits
c6df41f6
Commit
c6df41f6
authored
Oct 20, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for GH-2670.
parent
0e610318
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
tests/run/cintop.pyx
tests/run/cintop.pyx
+23
-0
No files found.
tests/run/cintop.pyx
View file @
c6df41f6
# mode: run
__doc__
=
u"""
>>> int2 = 42
>>> int3 = 7
...
...
@@ -35,3 +37,24 @@ def f():
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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment