Merged pull request #12 from bhy/T423.
[cython.git] / tests / errors / e_tempcast.pyx
index 0a0f8b3abb4a1d2e7a19cd2bd823f7a6a5024bb6..ff89915e2e8d0e3c0330cf4f83d3988bdbc24eb3 100644 (file)
@@ -1,9 +1,12 @@
+# mode: error
+
 cdef object blarg
 
 def foo(obj):
-       cdef int *p
-       p = <int *>blarg # okay
-       p = <int *>(foo + blarg) # error - temporary
+       cdef void *p
+       p = <void *>blarg # ok
+       p = <void *>(obj + blarg) # error - temporary
+
 _ERRORS = u"""
-/Local/Projects/D/Pyrex/Source/Tests/Errors1/e_tempcast.pyx:6:5: Casting temporary Python object to non-numeric non-Python type
+8:5: Casting temporary Python object to non-numeric non-Python type
 """