From 1bed0ccca83a56dac3a30ecf25a0dd0b3fe66118 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 27 Nov 2007 06:45:01 +0000 Subject: * compile.c (iseq_compile_each): "a[*b] += 1" dumps core. a patch from Yusuke ENDOH . [ruby-dev:32354] * bootstraptest/test_syntax.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_syntax.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bootstraptest/test_syntax.rb') diff --git a/bootstraptest/test_syntax.rb b/bootstraptest/test_syntax.rb index b1517e697b..5c45c95f94 100644 --- a/bootstraptest/test_syntax.rb +++ b/bootstraptest/test_syntax.rb @@ -608,3 +608,7 @@ assert_equal '3', %q{ p(1, (redo; 2)) end) } +assert_equal '1', %q{ + a = [0] + a[*a]+=1 +} -- cgit v1.2.3