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