summaryrefslogtreecommitdiff
path: root/bootstraptest/test_jump.rb
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-20 15:28:33 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-20 15:28:33 +0000
commitadfe4f39304f330cebe673d603b226713ce58210 (patch)
tree23af854b44582f77905873d1de3611f46e635b0a /bootstraptest/test_jump.rb
parent7c7a7c1205677e7b6e4814c7f314cb53816ab07c (diff)
downloadruby-adfe4f39304f330cebe673d603b226713ce58210.tar.gz
* compile.c (NODE_NEXT, NODE_REDO): add dummy putnil instruction to
fix stack consistency error. [ruby-core:28172] * bootstraptest/test_jump.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_jump.rb')
-rw-r--r--bootstraptest/test_jump.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/bootstraptest/test_jump.rb b/bootstraptest/test_jump.rb
index bfb380e45b..9484df8852 100644
--- a/bootstraptest/test_jump.rb
+++ b/bootstraptest/test_jump.rb
@@ -271,3 +271,14 @@ assert_normal_exit %q{
end
end.call
}
+
+assert_normal_exit %q{
+ while true
+ begin
+ raise
+ next
+ rescue
+ end
+ break
+ end
+}, '[ruby-core:28172]'