test for ticket 237
authorStefan Behnel <scoder@users.berlios.de>
Mon, 16 Mar 2009 20:09:16 +0000 (21:09 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 16 Mar 2009 20:09:16 +0000 (21:09 +0100)
tests/bugs/large_consts_T237.pyx [new file with mode: 0644]

diff --git a/tests/bugs/large_consts_T237.pyx b/tests/bugs/large_consts_T237.pyx
new file mode 100644 (file)
index 0000000..eb07aa9
--- /dev/null
@@ -0,0 +1,14 @@
+__doc__ = u"""
+>>> add_large_pow() == 2**31 + 2**31
+True
+>>> add_large_pow() == 2**32
+True
+>>> add_large() == 2147483647 + 2147483647
+True
+"""
+
+def add_large():
+    return 2147483647 + 2147483647
+
+def add_large_pow():
+    return 2**31 + 2**31