From e885517639c2bc1eacedfffe68679c4882b2fa5f Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 24 Dec 2007 18:54:52 +0000 Subject: * compile.c (iseq_compile_each): fix stack consistency bug. a patch from Yusuke ENDOH git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_syntax.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bootstraptest') diff --git a/bootstraptest/test_syntax.rb b/bootstraptest/test_syntax.rb index 5fd948cdff..4be2f0cddb 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 +} -- cgit v1.2.3