From e0dcf23cd5973c9f1fdb7218cf3eac7774f1f0c2 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 20 Dec 2007 01:03:15 +0000 Subject: * insnhelper.ci (vm_expandarray): fix sp increase place. a patch from Yusuke ENDOH in [ruby-dev:32581]. * bootstraptest/test_massign.rb: add a test for above. * bootstraptest/test_syntax.rb: fix last committed test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 9 +++++++++ bootstraptest/test_massign.rb | 15 +++++++++++++++ bootstraptest/test_syntax.rb | 2 +- insnhelper.ci | 4 ++-- 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0f6e457618..0a26fed05b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +Thu Dec 20 09:59:27 2007 Koichi Sasada + + * insnhelper.ci (vm_expandarray): fix sp increase place. + a patch from Yusuke ENDOH in [ruby-dev:32581]. + + * bootstraptest/test_massign.rb: add a test for above. + + * bootstraptest/test_syntax.rb: fix last committed test. + Thu Dec 20 09:47:58 2007 Koichi Sasada * bootstraptest/test_syntax.rb: add a test. diff --git a/bootstraptest/test_massign.rb b/bootstraptest/test_massign.rb index 0c73b71461..ad31729a73 100644 --- a/bootstraptest/test_massign.rb +++ b/bootstraptest/test_massign.rb @@ -159,3 +159,18 @@ assert_equal 'ok', %q{ ary = [0, 1, 2, 3, 4, 5, 6] a, b, *c, d, e, f = *ary; [a, b, c, d, e, f] } + + +# +assert_equal 'ok', %q{ + a,s=[],"aaa" + 300.times { a<sp += space_size; - if (TYPE(ary) != T_ARRAY) { ary = rb_ary_to_ary(ary); } + cfp->sp += space_size; + tmp_ary = ary; ptr = RARRAY_PTR(ary); len = RARRAY_LEN(ary); -- cgit v1.2.3