From 415283ac95e1dd93518836dbaad4545cca4dfa57 Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 4 Oct 2003 17:51:11 +0000 Subject: * marshal.c (w_object): instance variable dump do not cause error for objects that cannot be dumped, if they traversed from marshal_dump. they are just ignored. * gc.c (Init_stack): cast "space" (doble value) into unsigned int. should run on PowerPC. * eval.c (rb_eval): should not execute else part if any exception is caught. [ruby-dev:21482] * parse.y (f_args): should allow unparenthesized block argument. * parse.y (f_rest_arg): should allow unparenthesized rest argument. * lib/irb/ruby-lex.rb (RubyLex::identify_identifier): support 'class ::Foo' syntax. [ruby-talk:83514] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sample/test.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sample/test.rb') diff --git a/sample/test.rb b/sample/test.rb index 1898813564..2cf4eea1f4 100644 --- a/sample/test.rb +++ b/sample/test.rb @@ -884,6 +884,18 @@ rescue Exception end test_ok($x) +def tt4 &block + tt2(raise(ArgumentError,""),&block) +end +$x = false +begin + tt4{} +rescue ArgumentError + $x = true +rescue Exception +end +test_ok($x) + # iterator break/redo/next/retry done = true loop{ -- cgit v1.2.3