summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2022-10-27 05:57:59 +1030
committerGitHub <noreply@github.com>2022-10-26 15:27:59 -0400
commitc746f380f278683e98262883ed69319bd9fa680e (patch)
treea082096e7303a5fd439773f7ff3f8b27ed45de2a /test
parentfa0adbad92fc1216ba0d1757fe40f0453e3a6574 (diff)
YJIT: Support nil and blockparamproxy as blockarg in send (#6492)
Co-authored-by: John Hawthorn <john@hawthorn.email> Co-authored-by: John Hawthorn <john@hawthorn.email>
Notes
Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_yjit.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/ruby/test_yjit.rb b/test/ruby/test_yjit.rb
index 09b5989a06..d740870736 100644
--- a/test/ruby/test_yjit.rb
+++ b/test/ruby/test_yjit.rb
@@ -513,9 +513,8 @@ class TestYJIT < Test::Unit::TestCase
RUBY
end
- def test_getblockparamproxy_with_no_block
- # Currently side exits on the send
- assert_compiles(<<~'RUBY', insns: [:getblockparamproxy], exits: { send: 2 })
+ def test_send_blockarg
+ assert_compiles(<<~'RUBY', insns: [:getblockparamproxy, :send], exits: {})
def bar
end
@@ -526,6 +525,9 @@ class TestYJIT < Test::Unit::TestCase
foo
foo
+
+ foo { }
+ foo { }
RUBY
end