summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2024-02-20 13:29:02 -0500
committerGitHub <noreply@github.com>2024-02-20 18:29:02 +0000
commit2e2e3d89af7d16e466a12a42ef6cd6554e700f50 (patch)
tree7bf28fd036d5f26786a54f2b92ee9077d94b3c56 /test/ruby
parentc0e5de956717f206840658c07e1c1b5f31b50f98 (diff)
YJIT: Support `**nil` for cfuncs
Similar to the iseq call support. Fairly straight forward.
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_yjit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_yjit.rb b/test/ruby/test_yjit.rb
index 3ccc1be1dd..35036aad4e 100644
--- a/test/ruby/test_yjit.rb
+++ b/test/ruby/test_yjit.rb
@@ -1574,11 +1574,11 @@ class TestYJIT < Test::Unit::TestCase
end
def test_kw_splat_nil
- assert_compiles(<<~'RUBY', result: %i[ok ok], no_send_fallbacks: true)
+ assert_compiles(<<~'RUBY', result: %i[ok ok ok], no_send_fallbacks: true)
def id(x) = x
def kw_fw(arg, **) = id(arg, **)
def fw(...) = id(...)
- def use = [fw(:ok), kw_fw(:ok)]
+ def use = [fw(:ok), kw_fw(:ok), :ok.itself(**nil)]
use
RUBY