[pypy-svn] r70528 - pypy/branch/jit-profiling/pypy/rlib/test

fijal at codespeak.net fijal at codespeak.net
Tue Jan 12 13:11:41 CET 2010


Author: fijal
Date: Tue Jan 12 13:11:41 2010
New Revision: 70528

Modified:
   pypy/branch/jit-profiling/pypy/rlib/test/test__jit_vref.py
Log:
A test for 70527


Modified: pypy/branch/jit-profiling/pypy/rlib/test/test__jit_vref.py
==============================================================================
--- pypy/branch/jit-profiling/pypy/rlib/test/test__jit_vref.py	(original)
+++ pypy/branch/jit-profiling/pypy/rlib/test/test__jit_vref.py	Tue Jan 12 13:11:41 2010
@@ -113,3 +113,18 @@
     x = interpret(f, [-5])
     assert lltype.typeOf(x) == OBJECTPTR
     assert not x
+
+def test_rtype_5():
+    l = []
+    def f():
+        x = virtual_ref(Y())
+        try:
+            y = x()
+        finally:
+            l.append(0)
+        if y is not None:
+            return 0
+        return 1
+
+    x = interpret(f, [])
+    



More information about the Pypy-commit mailing list