Commit 9ca8c125 authored by Robert Bradshaw's avatar Robert Bradshaw

Add corner case temp (de)allocation test.

This is as simple as I could get it.
parent 41ab9f0b
__doc__ = """
>>> B().coeffs_bitsize()
[2]
"""
cdef class A:
def numerator(self):
return self
cdef int bitsize(A a):
return 1
coeffs = [A()]
class B:
def coeffs_bitsize(self):
r = [bitsize(c.numerator())+1 for c in coeffs]
return r
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