initial test for constant folding
authorStefan Behnel <scoder@users.berlios.de>
Sat, 13 Dec 2008 21:46:31 +0000 (22:46 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 13 Dec 2008 21:46:31 +0000 (22:46 +0100)
tests/run/consts.pyx [new file with mode: 0644]

diff --git a/tests/run/consts.pyx b/tests/run/consts.pyx
new file mode 100644 (file)
index 0000000..d9da343
--- /dev/null
@@ -0,0 +1,12 @@
+__doc__ = u"""
+>>> add()
+10
+>>> add_var(10)
+20
+"""
+
+def add():
+    return 1+2+3+4
+
+def add_var(a):
+    return 1+2 +a+ 3+4