Merged pull request #12 from bhy/T423.
[cython.git] / tests / errors / e_tempcast.pyx
index 4e59a41c9738d24adc81a8935b8b807be1149916..ff89915e2e8d0e3c0330cf4f83d3988bdbc24eb3 100644 (file)
@@ -1,10 +1,12 @@
+# mode: error
+
 cdef object blarg
 
 def foo(obj):
        cdef void *p
        p = <void *>blarg # ok
        p = <void *>(obj + blarg) # error - temporary
-       
+
 _ERRORS = u"""
-6:5: Casting temporary Python object to non-numeric non-Python type
+8:5: Casting temporary Python object to non-numeric non-Python type
 """