diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2025-06-26 22:11:35 +0900 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2025-06-27 20:42:38 +0900 |
| commit | 8e75a36129ed8168326ec7cc67ae019637fccfa5 (patch) | |
| tree | 4d4bb81d71c7ba6a88efddae3537e3771ff25b49 /test/ruby/test_zjit.rb | |
| parent | b125fb56c98509bb1c0d2eba901a0238f2e3a5f3 (diff) | |
ZJIT: Add TODOs and omitted test for nested scope local access
Diffstat (limited to 'test/ruby/test_zjit.rb')
| -rw-r--r-- | test/ruby/test_zjit.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/ruby/test_zjit.rb b/test/ruby/test_zjit.rb index be8b910fd6..5cb6d1f03e 100644 --- a/test/ruby/test_zjit.rb +++ b/test/ruby/test_zjit.rb @@ -81,6 +81,28 @@ class TestZJIT < Test::Unit::TestCase }, call_threshold: 3, insns: [:getlocal, :setlocal, :getlocal_WC_0, :setlocal_WC_1] end + def test_read_local_written_by_children_iseqs + omit "This test fails right now because Send doesn't compile." + + assert_compiles '[1, 2]', %q{ + def test + l1 = nil + l2 = nil + tap do |_| + l1 = 1 + tap do |_| + l2 = 2 + end + end + + [l1, l2] + end + + test + test + }, call_threshold: 2 + end + def test_send_without_block assert_compiles '[1, 2, 3]', %q{ def foo = 1 |
