diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-27 06:45:01 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-27 06:45:01 +0000 |
| commit | d4055d55b7fd5ee08ef7a425753b1c23cd67f252 (patch) | |
| tree | 5944861e4a835e03eff859cb3c430b1a75a9b0ef /bootstraptest | |
| parent | 123387ed294aa83cc506ef7d8733b5fd042bd67f (diff) | |
| download | ruby-d4055d55b7fd5ee08ef7a425753b1c23cd67f252.tar.gz ruby-d4055d55b7fd5ee08ef7a425753b1c23cd67f252.tar.xz ruby-d4055d55b7fd5ee08ef7a425753b1c23cd67f252.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@14032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
| -rw-r--r-- | bootstraptest/test_syntax.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 +} |
