From 7f3dda0faccb8f2803486e78260861c8d6208dcc Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 13 Dec 2008 22:46:31 +0100 Subject: [PATCH] initial test for constant folding --- tests/run/consts.pyx | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/run/consts.pyx diff --git a/tests/run/consts.pyx b/tests/run/consts.pyx new file mode 100644 index 00000000..d9da3437 --- /dev/null +++ b/tests/run/consts.pyx @@ -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 -- 2.26.2