Author: Alex Gaynor <alex.gay...@gmail.com> Branch: Changeset: r48352:6be78cdf609b Date: 2011-10-22 17:24 -0700 http://bitbucket.org/pypy/pypy/changeset/6be78cdf609b/
Log: failing test in optimizebasic form, if this code is invalid then this test can be removed diff --git a/pypy/jit/metainterp/optimizeopt/test/test_optimizebasic.py b/pypy/jit/metainterp/optimizeopt/test/test_optimizebasic.py --- a/pypy/jit/metainterp/optimizeopt/test/test_optimizebasic.py +++ b/pypy/jit/metainterp/optimizeopt/test/test_optimizebasic.py @@ -4800,6 +4800,18 @@ """ self.optimize_strunicode_loop(ops, expected) + def test_ptr_eq_str_constant(self): + ops = """ + [] + i0 = ptr_eq(s"abc", s"\x00") + finish(i0) + """ + expected = """ + [] + finish(0) + """ + self.optimize_loop(ops, expected) + class TestLLtype(BaseTestOptimizeBasic, LLtypeMixin): pass _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit