From 11ba186c4725ef7acecbf99243083bc909b7c960 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Tue, 1 Jan 2019 09:52:15 +0000 Subject: test_jit.rb: test methodref insn git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_jit.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/ruby/test_jit.rb') 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 -- cgit v1.2.3