new error test for uncallable C types
authorStefan Behnel <scoder@users.berlios.de>
Mon, 27 Oct 2008 21:34:27 +0000 (22:34 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 27 Oct 2008 21:34:27 +0000 (22:34 +0100)
tests/errors/e_callnonfunction.pyx [new file with mode: 0644]

diff --git a/tests/errors/e_callnonfunction.pyx b/tests/errors/e_callnonfunction.pyx
new file mode 100644 (file)
index 0000000..17f4bdc
--- /dev/null
@@ -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'
+"""