From 88ca3385c4ae52b1898cc404854071d819e5070e Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 27 Oct 2008 22:34:27 +0100 Subject: [PATCH] new error test for uncallable C types --- tests/errors/e_callnonfunction.pyx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/errors/e_callnonfunction.pyx 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' +""" -- 2.26.2