diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2021-01-18 14:52:07 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2021-01-18 14:52:33 -0800 |
commit | 9d1475c621af671494769dde5a09db4c86071474 (patch) | |
tree | 5cdd50495aad0a3c250b9fced5b9e14e9b54c01d /test | |
parent | e812b362059706d0fb4ce1ec4f8941383dda6166 (diff) | |
download | ruby-9d1475c621af671494769dde5a09db4c86071474.tar.gz |
Fix JIT link failures
forgotten in https://github.com/ruby/ruby/pull/4018
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_jit.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index 54f9698afa..3ecc78fcfe 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -777,6 +777,20 @@ class TestJIT < Test::Unit::TestCase end; end + def test_inlined_builtin_methods + assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: '', success_count: 1, min_calls: 2) + begin; + def test + float = 0.0 + float.abs + -float + float.zero? + end + test + test + end; + end + def test_inlined_c_method assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: "aaa", success_count: 2, recompile_count: 1, min_calls: 2) begin; |