diff options
| author | Randy Stauner <randy@r4s6.net> | 2025-12-11 18:28:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-12 01:28:11 +0000 |
| commit | 3a76625915e57eb328d23ae5dd621d8bf45b30e0 (patch) | |
| tree | 68753e1ec783a4e2e53a2ef49f3b2f48aab8a660 /test/ruby | |
| parent | 1f0ca55750413603057fabef39550feb9e7fc3c8 (diff) | |
ZJIT: Don't specialize calls with kwsplat (#15513)
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_zjit.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_zjit.rb b/test/ruby/test_zjit.rb index 49b3616425..232c46079f 100644 --- a/test/ruby/test_zjit.rb +++ b/test/ruby/test_zjit.rb @@ -626,6 +626,15 @@ class TestZJIT < Test::Unit::TestCase }, call_threshold: 2 end + def test_send_kwsplat + assert_compiles '3', %q{ + def test(a:) = a + def entry = test(**{a: 3}) + entry + entry + }, call_threshold: 2 + end + def test_send_kwrest assert_compiles '{a: 3}', %q{ def test(**kwargs) = kwargs |
