mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* compile.c (get_destination_insn, get_next_insn, get_prev_insn):
peephole optimization should not ignore ISEQ_ELEMENT_ADJUST. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2b791b2ddd
commit
846ea1727f
3 changed files with 19 additions and 3 deletions
|
@ -248,3 +248,14 @@ assert_equal "1", %q{
|
|||
end
|
||||
end
|
||||
}, "[ruby-dev:31698]"
|
||||
|
||||
assert_normal_exit %q{
|
||||
f = 0
|
||||
1.times do
|
||||
begin
|
||||
f += 1
|
||||
ensure
|
||||
redo unless f > 2
|
||||
end
|
||||
end
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue