Blame tests/errors/e_badfuncargtype.pyx
|
Packit |
562c7a |
# mode: error
|
|
Packit |
562c7a |
|
|
Packit |
562c7a |
cdef struct Spam
|
|
Packit |
562c7a |
|
|
Packit |
562c7a |
cdef extern int spam(void) # function argument cannot be void
|
|
Packit |
562c7a |
cdef extern int grail(int i, void v) # function argument cannot be void
|
|
Packit |
562c7a |
cdef int tomato(Spam s): # incomplete type
|
|
Packit |
562c7a |
pass
|
|
Packit |
562c7a |
|
|
Packit |
562c7a |
_ERRORS = u"""
|
|
Packit |
562c7a |
5:21: Use spam() rather than spam(void) to declare a function with no arguments.
|
|
Packit |
562c7a |
6:29: Use spam() rather than spam(void) to declare a function with no arguments.
|
|
Packit |
562c7a |
7:16: Argument type 'Spam' is incomplete
|
|
Packit |
562c7a |
"""
|