diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-01 09:52:15 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-01 09:52:15 +0000 |
commit | 11ba186c4725ef7acecbf99243083bc909b7c960 (patch) | |
tree | ad9495a56628353b122e2aa95dcfbf7d09097349 | |
parent | 6e7213f427c8030396c2de6cc488cae5d8dd5ff9 (diff) | |
download | ruby-11ba186c4725ef7acecbf99243083bc909b7c960.tar.gz |
test_jit.rb: test methodref insn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_jit.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index d1c7351f50..e85a7cbee0 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -443,6 +443,13 @@ class TestJIT < Test::Unit::TestCase end; end + def test_compile_insn_methodref + assert_compile_once("#{<<~"begin;"}\n#{<<~'end;'}", result_inspect: '"main"', insns: %i[methodref]) + begin; + self.:inspect.call + end; + end + def test_compile_insn_inlinecache assert_compile_once('Struct', result_inspect: 'Struct', insns: %i[opt_getinlinecache opt_setinlinecache]) end |