ruby-changes:56770
From: Yusuke <ko1@a...>
Date: Fri, 2 Aug 2019 23:43:58 +0900 (JST)
Subject: [ruby-changes:56770] Yusuke Endoh: 536ba7c81e (master): Revert "Remove opt_nil_p test to remove warning for now"
https://git.ruby-lang.org/ruby.git/commit/?id=536ba7c81e From 536ba7c81e72c365e92b9db3a80065b89b8b535b Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Fri, 2 Aug 2019 23:29:58 +0900 Subject: Revert "Remove opt_nil_p test to remove warning for now" This reverts commit a1727e43af18c122c4d7adfa603f895fdc8f3df1. diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index be2a32d..188c013 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -365,6 +365,13 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L365 end; end + def test_compile_insn_opt_nil_p + assert_compile_once("#{<<~"begin;"}\n#{<<~"end;"}", result_inspect: 'false', insns: %i[opt_nil_p]) + begin; + nil.nil?.nil? + end; + end + def test_compile_insn_opt_str_uminus assert_compile_once("#{<<~"begin;"}\n#{<<~"end;"}", result_inspect: '"bar"', insns: %i[opt_str_uminus]) begin; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/