summaryrefslogtreecommitdiff
path: root/bootstraptest/test_syntax.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-27 06:45:01 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-27 06:45:01 +0000
commit1bed0ccca83a56dac3a30ecf25a0dd0b3fe66118 (patch)
tree5944861e4a835e03eff859cb3c430b1a75a9b0ef /bootstraptest/test_syntax.rb
parentb0986a8f827cc97d7cf19b15c38fbdab794e34b9 (diff)
* 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
Diffstat (limited to 'bootstraptest/test_syntax.rb')
-rw-r--r--bootstraptest/test_syntax.rb4
1 files changed, 4 insertions, 0 deletions
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
+}