Commit 4d676ccf authored by Robert Bradshaw's avatar Robert Bradshaw

Test for bad buffer types.

parent 2b8bff70
...@@ -10,6 +10,7 @@ def f(): ...@@ -10,6 +10,7 @@ def f():
cdef object[int,2,3,4,5,6] buf4 cdef object[int,2,3,4,5,6] buf4
cdef object[int, 2, 'foo'] buf5 cdef object[int, 2, 'foo'] buf5
cdef object[int, 2, well] buf6 cdef object[int, 2, well] buf6
cdef object[x, 1] buf0
_ERRORS = u""" _ERRORS = u"""
1:17: Buffer types only allowed as function local variables 1:17: Buffer types only allowed as function local variables
...@@ -23,5 +24,6 @@ _ERRORS = u""" ...@@ -23,5 +24,6 @@ _ERRORS = u"""
#10:15: Too many buffer options #10:15: Too many buffer options
#11:24: Only allowed buffer modes are "full" or "strided" (as a compile-time string) #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) #12:28: Only allowed buffer modes are "full" or "strided" (as a compile-time string)
#13:17: Invalid type.
#""" #"""
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment