1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* bootstraptest/test_syntax.rb: add a test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2007-12-20 00:50:13 +00:00
parent f5e7602c33
commit bc162c69ea
2 changed files with 20 additions and 0 deletions

View file

@ -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.

View file

@ -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
}