diff options
| author | Takashi Kokubun <takashi.kokubun@shopify.com> | 2025-09-22 15:57:57 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-22 15:57:57 -0700 |
| commit | cdb9c2543415588c485282e460cdaba09452ab6a (patch) | |
| tree | 7d470a0bca65e37813be0fc9b37979e5027440bb /test/ruby/test_zjit.rb | |
| parent | 1d00c1114aa36de682483784e3b6b94e3c71b8f7 (diff) | |
ZJIT: Guard receiver class for CCallVariadic (#14630)
Diffstat (limited to 'test/ruby/test_zjit.rb')
| -rw-r--r-- | test/ruby/test_zjit.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_zjit.rb b/test/ruby/test_zjit.rb index f0109bda8b..c1e8cfa805 100644 --- a/test/ruby/test_zjit.rb +++ b/test/ruby/test_zjit.rb @@ -470,6 +470,13 @@ class TestZJIT < Test::Unit::TestCase } end + def test_send_ccall_variadic_with_different_receiver_classes + assert_compiles '[true, true]', %q{ + def test(obj) = obj.start_with?("a") + [test("abc"), test(:abc)] + }, call_threshold: 2 + end + def test_forwardable_iseq assert_compiles '1', %q{ def test(...) = 1 |
