big C++ mergeback
[cython.git] / tests / errors / e_bufaccess.pyx
1 cdef object[int] buf
2 cdef class A:
3     cdef object[int] buf
4
5 def f():
6     cdef object[fakeoption=True] buf1
7     cdef object[int, -1] buf1b 
8     cdef object[ndim=-1] buf2
9     cdef object[int, 'a'] buf3
10     cdef object[int,2,3,4,5,6] buf4
11     cdef object[int, 2, 'foo'] buf5
12     cdef object[int, 2, well] buf6
13
14 _ERRORS = u"""
15 1:17: Buffer types only allowed as function local variables
16 3:21: Buffer types only allowed as function local variables
17 6:27: "fakeoption" is not a buffer option
18 """
19 #TODO:
20 #7:22: "ndim" must be non-negative
21 #8:15: "dtype" missing
22 #9:21: "ndim" must be an integer
23 #10:15: Too many buffer options
24 #11:24: Only allowed buffer modes are "full" or "strided" (as a compile-time string)
25 #12:28: Only allowed buffer modes are "full" or "strided" (as a compile-time string)
26 #"""
27