Commit 0ce6a6be authored by Kevin Modzelewski's avatar Kevin Modzelewski

Another unboxed-vals test

This will fail even with the current workaround
parent b871bc10
...@@ -42,6 +42,14 @@ def f4(a, b): ...@@ -42,6 +42,14 @@ def f4(a, b):
for i in xrange(11000): for i in xrange(11000):
f4(1000, 1000) f4(1000, 1000)
def f6():
for i in xrange(11000):
a = b = 1000
if True:
pass
f4(a, b)
f6()
# This applies to other data types as well. (maybe should call this test file something else) # This applies to other data types as well. (maybe should call this test file something else)
def ident(x): def ident(x):
...@@ -49,7 +57,7 @@ def ident(x): ...@@ -49,7 +57,7 @@ def ident(x):
def f5(): def f5():
t = (1, 2, 3) t = (1, 2, 3)
print ident(t) is t assert ident(t) is t
for i in xrange(10): for i in xrange(10):
f5() f5()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment