[pypy-commit] pypy default: issue 2465: failing test
arigo
pypy.commits at gmail.com
Sat Jan 14 10:58:41 EST 2017
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r89560:3fa70d621b54
Date: 2017-01-14 15:50 +0100
http://bitbucket.org/pypy/pypy/changeset/3fa70d621b54/
Log: issue 2465: failing test
diff --git a/rpython/jit/metainterp/test/test_ajit.py b/rpython/jit/metainterp/test/test_ajit.py
--- a/rpython/jit/metainterp/test/test_ajit.py
+++ b/rpython/jit/metainterp/test/test_ajit.py
@@ -4620,3 +4620,19 @@
time.clock()
return 0
self.interp_operations(g, [])
+
+ def test_issue2465(self):
+ driver = JitDriver(greens=[], reds=['i', 'a', 'b'])
+ class F(object):
+ def __init__(self, floatval):
+ self.floatval = floatval
+ def f(i):
+ a = F(0.0)
+ b = None
+ while i > 0:
+ driver.jit_merge_point(i=i, a=a, b=b)
+ b = F(a.floatval / 1.)
+ i -= 1
+ return i
+
+ self.meta_interp(f, [10])
More information about the pypy-commit
mailing list