diff tests/test_parse_files/test_functiondef_decorators.py @ 64:53817b39f139

Add FunctionDef.decorator_list support.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 13 Jun 2016 01:18:48 +0100
parents
children ce5e27a3f277
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/tests/test_parse_files/test_functiondef_decorators.py
@@ -0,0 +1,7 @@
+import cython
+@cython.locals(a=int)
+@cython.returns(int)
+@cython.cfunc
+def id(a):
+    return a
+print(id(5))