From d4055d55b7fd5ee08ef7a425753b1c23cd67f252 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: http://svn.ruby-lang.org/repos/ruby/trunk@14032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_syntax.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bootstraptest') diff --git a/bootstraptest/test_syntax.rb b/bootstraptest/test_syntax.rb index b1517e697..5c45c95f9 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