summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_zjit.rb9
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