summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2024-02-13 11:44:03 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2024-02-13 12:16:36 -0500
commitfdaef7a72e8611ffd4889aa1a1dbc6ebaf5b3095 (patch)
treef8cfd1599536c811ae4ccc9cb3fd47a803e8fb86 /bootstraptest
parentc35fea8509551aefe257986c937ea7147f436bdf (diff)
YJIT: Fixup kwrest stack base
I was a little rushed and didn't notice that it was still using the final stack size even though we don't grow the stack before kwrest handling anymore. Oh well, we got a new test out of it. Fix: cbdabd5890
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_yjit.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb
index d5427588e0..753b1920d7 100644
--- a/bootstraptest/test_yjit.rb
+++ b/bootstraptest/test_yjit.rb
@@ -4538,3 +4538,14 @@ assert_normal_exit %q{
Foo.new.try
}
+
+# a kwrest case
+assert_equal '[1, 2, {:complete=>false}]', %q{
+ def rest(foo: 1, bar: 2, **kwrest)
+ [foo, bar, kwrest]
+ end
+
+ def callsite = rest(complete: false)
+
+ callsite
+}