summaryrefslogtreecommitdiff
path: root/test/ruby/test_jit.rb
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-01 09:52:15 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-01 09:52:15 +0000
commit11ba186c4725ef7acecbf99243083bc909b7c960 (patch)
treead9495a56628353b122e2aa95dcfbf7d09097349 /test/ruby/test_jit.rb
parent6e7213f427c8030396c2de6cc488cae5d8dd5ff9 (diff)
test_jit.rb: test methodref insn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_jit.rb')
-rw-r--r--test/ruby/test_jit.rb7
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