Add simple test for cdef override warning
authorVitja Makarov <vitja.makarov@gmail.com>
Wed, 13 Apr 2011 15:03:42 +0000 (19:03 +0400)
committerVitja Makarov <vitja.makarov@gmail.com>
Thu, 14 Apr 2011 09:07:14 +0000 (13:07 +0400)
tests/errors/w_cdef_override.pyx [new file with mode: 0644]

diff --git a/tests/errors/w_cdef_override.pyx b/tests/errors/w_cdef_override.pyx
new file mode 100644 (file)
index 0000000..e3e5156
--- /dev/null
@@ -0,0 +1,13 @@
+# mode: error
+# tags: werror
+
+cdef foo():
+    pass
+
+def foo():
+    pass
+
+_ERRORS = u"""
+7:0: 'foo' redeclared
+7:0: Overriding cdef method with def method.
+"""