mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* compile.c (iseq_compile_each): fix stack consistency error.
a patch from Yusuke ENDOH <mame AT tsg.ne.jp> [ruby-dev:32720] * bootstraptest/test_syntax.rb: add 2 tests for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bfc19ade2e
commit
1af43d329f
3 changed files with 31 additions and 1 deletions
|
@ -690,3 +690,25 @@ assert_equal 'ok', %q{
|
|||
end
|
||||
:ok
|
||||
}
|
||||
|
||||
assert_equal 'ok', %q{
|
||||
counter = 2
|
||||
while true
|
||||
counter -= 1
|
||||
break if counter == 0
|
||||
next
|
||||
redo
|
||||
end
|
||||
:ok
|
||||
}
|
||||
|
||||
assert_equal 'ok', %q{
|
||||
counter = 2
|
||||
while true
|
||||
counter -= 1
|
||||
break if counter == 0
|
||||
next
|
||||
"#{ redo }"
|
||||
end
|
||||
:ok
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue