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 25, 2022
1 parent dc4b8b4 commit 0f500bb
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 0f500bb

Please sign in to comment.