summaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-24 18:54:52 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-24 18:54:52 +0000
commit848f840d47ead505de70a9de6287332f008d0047 (patch)
tree4fd02de14d300845364775e9472f9ffc2f8006f5 /bootstraptest
parentd08534a5fcbaee9007c083400de061de4a4fad32 (diff)
downloadruby-848f840d47ead505de70a9de6287332f008d0047.tar.gz
ruby-848f840d47ead505de70a9de6287332f008d0047.tar.xz
ruby-848f840d47ead505de70a9de6287332f008d0047.zip
* compile.c (iseq_compile_each): fix stack consistency bug.
a patch from Yusuke ENDOH <mame AT tsg.ne.jp> git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_syntax.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/bootstraptest/test_syntax.rb b/bootstraptest/test_syntax.rb
index 5fd948cdf..4be2f0cdd 100644
--- a/bootstraptest/test_syntax.rb
+++ b/bootstraptest/test_syntax.rb
@@ -681,3 +681,12 @@ assert_equal 'ok', %q{
end # direct
}, '[ruby-core:14385]'
+assert_equal 'ok', %q{
+ counter = 2
+ while true
+ counter -= 1
+ break if counter == 0
+ "#{next}"
+ end
+ :ok
+}