Commit 196cb6dd authored by Stefan Behnel's avatar Stefan Behnel

extended test case

parent d3e89c97
...@@ -2,9 +2,15 @@ cdef void foo(): ...@@ -2,9 +2,15 @@ cdef void foo():
cdef int bool, int1 cdef int bool, int1
cdef char *ptr2 cdef char *ptr2
cdef int *ptr3 cdef int *ptr3
cdef object i = 5
bool = i == ptr2 # evaluated in Python space
bool = ptr3 == i # error
bool = int1 == ptr2 # error bool = int1 == ptr2 # error
bool = ptr2 == ptr3 # error bool = ptr2 == ptr3 # error
_ERRORS = u""" _ERRORS = u"""
5:13: Invalid types for '==' (int, char *) 8:13: Invalid types for '==' (int *, Python object)
6:13: Invalid types for '==' (char *, int *) 9:13: Invalid types for '==' (int, char *)
10:13: Invalid types for '==' (char *, int *)
""" """
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