aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authorJimmy Miller <jimmy.miller@shopify.com>2023-03-16 17:40:36 -0400
committerGitHub <noreply@github.com>2023-03-16 17:40:36 -0400
commit5825d7d4a1a53ba84909a01679f4dfab63fa9739 (patch)
treec750e66a037c074c4d7536faf0a63b4660de7a17 /bootstraptest
parent473009d7cbafc4a94be53694b5934167072068e6 (diff)
downloadruby-5825d7d4a1a53ba84909a01679f4dfab63fa9739.tar.gz
YJIT: Remove exit for rest and send combo (#7546)
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_yjit.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb
index d7dd0cd460..8902cd6cde 100644
--- a/bootstraptest/test_yjit.rb
+++ b/bootstraptest/test_yjit.rb
@@ -3654,3 +3654,11 @@ assert_equal "[]", %q{
test(custom)
EMPTY
}
+
+# Rest with send
+assert_equal '[1, 2, 3]', %q{
+ def bar(x, *rest)
+ rest.insert(0, x)
+ end
+ send(:bar, 1, 2, 3)
+}