diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-08-02 23:29:58 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-08-02 23:29:58 +0900 |
commit | 536ba7c81e72c365e92b9db3a80065b89b8b535b (patch) | |
tree | c706a650cfd1c32a95084eb00913a1f7abaa1d7d /test | |
parent | 086ffe72c711179c30a773027e0b4113e908d399 (diff) | |
download | ruby-536ba7c81e72c365e92b9db3a80065b89b8b535b.tar.gz |
Revert "Remove opt_nil_p test to remove warning for now"
This reverts commit a1727e43af18c122c4d7adfa603f895fdc8f3df1.
Diffstat (limited to 'test')
-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 be2a32da21..188c013691 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -365,6 +365,13 @@ class TestJIT < Test::Unit::TestCase 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; |