From: Stefan Behnel Date: Mon, 16 Mar 2009 20:09:16 +0000 (+0100) Subject: test for ticket 237 X-Git-Tag: 0.11.1.alpha~55 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3bfbb346dbc13e6456505a971fd5f2f0052129a0;p=cython.git test for ticket 237 --- diff --git a/tests/bugs/large_consts_T237.pyx b/tests/bugs/large_consts_T237.pyx new file mode 100644 index 00000000..eb07aa95 --- /dev/null +++ b/tests/bugs/large_consts_T237.pyx @@ -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