summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-20 00:50:13 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-20 00:50:13 +0000
commit9a1ac80e093bc01d67acc4789e1aabf4b25b6a48 (patch)
tree0dd984e2fb8409010f82e12d2c9bdbfe206a1e3e
parent91c7b2667e347b82268473e8f1a97f85823e70d3 (diff)
downloadruby-9a1ac80e093bc01d67acc4789e1aabf4b25b6a48.tar.gz
ruby-9a1ac80e093bc01d67acc4789e1aabf4b25b6a48.tar.xz
ruby-9a1ac80e093bc01d67acc4789e1aabf4b25b6a48.zip
* bootstraptest/test_syntax.rb: add a test.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--bootstraptest/test_syntax.rb16
2 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b783f8fc2..0f6e45761 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Dec 20 09:47:58 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_syntax.rb: add a test.
+
Thu Dec 20 09:40:51 2007 Koichi Sasada <ko1@atdot.net>
* compile.c (iseq_compile_each/NODE_RETURN): fix stack consistency.
diff --git a/bootstraptest/test_syntax.rb b/bootstraptest/test_syntax.rb
index e407d7cf5..37b07b0c1 100644
--- a/bootstraptest/test_syntax.rb
+++ b/bootstraptest/test_syntax.rb
@@ -644,5 +644,21 @@ assert_equal 'true', %q{
assert_normal_exit %q{
eval "while true; return; end rescue p $!"
}, '[ruby-dev:31663]'
+assert_equal :ok, %q{
+ def bar
+ raise
+ end
+
+ def foo
+ 1.times{
+ begin
+ return bar
+ rescue
+ :ok
+ end
+ }
+ end
+ foo
+}