From: Stefan Behnel Date: Mon, 27 Oct 2008 21:34:27 +0000 (+0100) Subject: new error test for uncallable C types X-Git-Tag: 0.9.9.2.beta~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=88ca3385c4ae52b1898cc404854071d819e5070e;p=cython.git new error test for uncallable C types --- diff --git a/tests/errors/e_callnonfunction.pyx b/tests/errors/e_callnonfunction.pyx new file mode 100644 index 00000000..17f4bdce --- /dev/null +++ b/tests/errors/e_callnonfunction.pyx @@ -0,0 +1,14 @@ +cdef int i +i() + +cdef float f +f() + +ctypedef struct s: # FIXME: this might be worth an error ... + int x +s() + +_ERRORS = u""" +2:1: Calling non-function type 'int' +5:1: Calling non-function type 'float' +"""