Commit decd0bf5 authored by Stefan Behnel's avatar Stefan Behnel

add simple test for unused buffer variables in a function

parent aef28fbd
...@@ -44,6 +44,19 @@ def nousage(): ...@@ -44,6 +44,19 @@ def nousage():
""" """
cdef object[int, ndim=2] buf cdef object[int, ndim=2] buf
def disabled_usage(obj):
"""
The challenge here is just compilation.
>>> disabled_usage(None)
"""
cdef object[int, ndim=2] buf
if False:
buf = obj
return obj
@testcase @testcase
def acquire_release(o1, o2): def acquire_release(o1, o2):
""" """
......
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