Merged pull request #12 from bhy/T423.
[cython.git] / tests / errors / e_index.pyx
index 726d78567872b4da5ac2dda3ee4b9b2743312b9f..e32e1a1399ac077ed892291da97e9b272e5c1344 100644 (file)
@@ -1,3 +1,5 @@
+# mode: error
+
 def f(obj1, obj2):
        cdef int int1, int2, int3
        cdef float flt1, *ptr1
@@ -7,8 +9,8 @@ def f(obj1, obj2):
        int1 = int2[int3] # error
        obj1 = obj2[ptr1] # error
 _ERRORS = u"""
-5:14: Invalid index type 'float'
-6:14: Invalid index type 'float *'
-7:12: Attempting to index non-array type 'int'
-8:17: Cannot convert 'float *' to Python object
+7:14: Invalid index type 'float'
+8:14: Invalid index type 'float *'
+9:12: Attempting to index non-array type 'int'
+10:17: Cannot convert 'float *' to Python object
 """