From db8e95587ee9fd8b392624b7594412e55a377bd7 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Wed, 2 May 2018 16:04:26 +0000 Subject: [PATCH] test_jit.rb: test opt_aref_with again git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_jit.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index 89b06f6a8e..64ed277a75 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -25,7 +25,6 @@ class TestJIT < Test::Unit::TestCase :setlocal_WC_1, :reput, :tracecoverage, - :opt_aref_with, ] def self.untested_insns @@ -457,6 +456,10 @@ class TestJIT < Test::Unit::TestCase end; end + def test_compile_insn_opt_aref_with + assert_compile_once("{ '1' => 2 }['1']", result_inspect: '2', insns: %i[opt_aref_with]) + end + def test_compile_insn_opt_aset assert_compile_once("#{<<~"begin;"}\n#{<<~"end;"}", result_inspect: '5', insns: %i[opt_aset opt_aset_with]) begin;