more error tests, some failing
[cython.git] / tests / errors / e_tempcast.pyx
1 def foo(obj):
2         cdef int *p
3         p = <int *>blarg # okay
4         p = <int *>(foo + blarg) # error - temporary
5 _ERRORS = u"""
6 /Local/Projects/D/Pyrex/Source/Tests/Errors1/e_tempcast.pyx:4:5: Casting temporary Python object to non-Python type
7 """