Commit c976e8d0 authored by Stefan Behnel's avatar Stefan Behnel

add simple test case that tends to be more inefficient than necessary

parent 35619f6a
......@@ -59,3 +59,19 @@ def and2_literal():
5
"""
return True and 5
def c_int_results(int x):
"""
>>> c_int_results(7)
(0, 0)
>>> c_int_results(5)
(1, 1)
"""
cdef int expr1, expr2, r1, r2
expr1 = x == 5
expr2 = 1
r1 = expr1 and expr2
r2 = (x==5) and 1
return r1, r2
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment