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;