diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-02 16:04:26 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-02 16:04:26 +0000 |
commit | db8e95587ee9fd8b392624b7594412e55a377bd7 (patch) | |
tree | 75b1ba4342067800878b6fde0c95f521362bd56f | |
parent | f15ce4936432748e4eee2ef5cf7d0e14cbb634b7 (diff) | |
download | ruby-db8e95587ee9fd8b392624b7594412e55a377bd7.tar.gz |
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
-rw-r--r-- | test/ruby/test_jit.rb | 5 |
1 files changed, 4 insertions, 1 deletions
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; |