Commits

Maciej Fijalkowski committed 13bc8ef

a failing test

Comments (0)

Files changed (1)

pypy/jit/metainterp/test/test_ajit.py

             return n
 
         self.meta_interp(f, [10], repeat=3)
-        
+
+    def test_jit_merge_point_with_pbc(self):
+        py.test.skip("failing")
+        driver = JitDriver(greens = [], reds = ['x'])
+
+        class A(object):
+            def __init__(self, x):
+                self.x = x
+        pbc = A(1)
+
+        def main(x):
+            return f(x, pbc)
+
+        def f(x, pbc):
+            while x > 0:
+                driver.jit_merge_point(x = x)
+                x -= pbc.x
+            return x
+
+        self.meta_interp(main, [10])
 
 class TestLLtype(BaseLLtypeTests, LLJitMixin):
     pass