[pypy-svn] r66884 - pypy/branch/pyjitpl5/pypy/jit/metainterp/test
cfbolz at codespeak.net
cfbolz at codespeak.net
Tue Aug 18 11:49:41 CEST 2009
Author: cfbolz
Date: Tue Aug 18 11:49:40 2009
New Revision: 66884
Modified:
pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_optimizefindnode.py
Log:
(armin, mikael, cfbolz): increase test coverage
Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_optimizefindnode.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_optimizefindnode.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_optimizefindnode.py Tue Aug 18 11:49:40 2009
@@ -575,6 +575,17 @@
# escapes because getarrayitem_gc uses a non-constant index
self.find_nodes(ops, 'Not, Not')
+ def test_find_nodes_arrayitem_forced(self):
+ ops = """
+ [p1]
+ p2 = new_array(1, descr=arraydescr)
+ escape(p2)
+ p4 = new_with_vtable(ConstClass(node_vtable))
+ setarrayitem_gc(p2, 0, p4, descr=arraydescr)
+ jump(p4)
+ """
+ self.find_nodes(ops, 'Not')
+
def test_find_nodes_struct_virtual_1(self):
ops = """
[i1, p2]
More information about the Pypy-commit
mailing list