From 42901554db49cd1204054ea695cea6ee4e368b1e Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 22 Mar 2014 00:02:32 +0200 Subject: [PATCH] objint_longlong: Add regression test for improper inplace op implementation. --- tests/basics/int-long.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/basics/int-long.py b/tests/basics/int-long.py index f867d8037d..3567e08b2d 100644 --- a/tests/basics/int-long.py +++ b/tests/basics/int-long.py @@ -37,3 +37,10 @@ a <<= 5 print(a) a >>= 1 print(a) + +# Test referential integrity of long ints +a = 0x1ffffffff +b = a +a += 1 +print(a) +print(b)