summaryrefslogtreecommitdiffstats
path: root/bootstraptest/test_jump.rb
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-22 14:45:54 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-22 14:45:54 +0000
commitad8477fc5c58f335a740c74e5a4a4809d4178d9f (patch)
treec261c7480568af4a231a7f06d8a2b4d8d5935cb9 /bootstraptest/test_jump.rb
parenteadb90ca2dcdef2f0e5df69cd12af1cdb983f704 (diff)
downloadruby-ad8477fc5c58f335a740c74e5a4a4809d4178d9f.tar.gz
ruby-ad8477fc5c58f335a740c74e5a4a4809d4178d9f.tar.xz
ruby-ad8477fc5c58f335a740c74e5a4a4809d4178d9f.zip
* compile.c (get_destination_insn, get_next_insn, get_prev_insn):
peephole optimization should not ignore ISEQ_ELEMENT_ADJUST. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16535 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 bc1a613b5..77467337c 100644
--- a/bootstraptest/test_jump.rb
+++ b/bootstraptest/test_jump.rb
@@ -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
+}