Skip to content

Commit

Permalink
Add test for branchif
Browse files Browse the repository at this point in the history
  • Loading branch information
maximecb authored and k0kubun committed Aug 26, 2022
1 parent 4cdda4b commit f27b957
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bootstraptest/test_yjit_new_backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,12 @@ def foo(n)
end
foo(true)
}

# branchif
assert_equal 'true', %q{
def foo()
x = true
x ||= "foo"
end
foo()
}

0 comments on commit f27b957

Please sign in to comment.