Fix error line numbers (due to tag additions).
[cython.git] / tests / errors / e_bufaccess.pyx
index ac4e006adf127996159ebe7134051ffe98657d7e..bc5b9c0f324964a95edb7422a0e572ee065c3831 100644 (file)
@@ -1,25 +1,31 @@
+# mode: error
+
 cdef object[int] buf
 cdef class A:
     cdef object[int] buf
 
 def f():
     cdef object[fakeoption=True] buf1
-    cdef object[int, -1] buf1b 
+    cdef object[int, -1] buf1b
     cdef object[ndim=-1] buf2
     cdef object[int, 'a'] buf3
     cdef object[int,2,3,4,5,6] buf4
     cdef object[int, 2, 'foo'] buf5
     cdef object[int, 2, well] buf6
+    cdef object[x, 1] buf0
 
 _ERRORS = u"""
-1:11: Buffer types only allowed as function local variables
-3:15: Buffer types only allowed as function local variables
-6:27: "fakeoption" is not a buffer option
-7:22: "ndim" must be non-negative
-8:15: "dtype" missing
-9:21: "ndim" must be an integer
-10:15: Too many buffer options
-11:24: Only allowed buffer modes are "full" or "strided" (as a compile-time string)
-12:28: Only allowed buffer modes are "full" or "strided" (as a compile-time string)
+3:17: Buffer types only allowed as function local variables
+5:21: Buffer types only allowed as function local variables
+8:31: "fakeoption" is not a buffer option
 """
+#TODO:
+#7:22: "ndim" must be non-negative
+#8:15: "dtype" missing
+#9:21: "ndim" must be an integer
+#10:15: Too many buffer options
+#11:24: Only allowed buffer modes are "full" or "strided" (as a compile-time string)
+#12:28: Only allowed buffer modes are "full" or "strided" (as a compile-time string)
+#13:17: Invalid type.
+#"""