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

* compile.c (iseq_compile_each): "a[*b] += 1" dumps core.

a patch from Yusuke ENDOH <mame AT tsg.ne.jp>.  [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
This commit is contained in:
ko1 2007-11-27 06:45:01 +00:00
parent b0986a8f82
commit 1bed0ccca8
3 changed files with 105 additions and 75 deletions

View file

@ -608,3 +608,7 @@ assert_equal '3', %q{
p(1, (redo; 2))
end)
}
assert_equal '1', %q{
a = [0]
a[*a]+=1
}