summaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-03 19:35:09 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-03 19:35:09 +0000
commit5fc55e280982d7c9e7e6bf7a4d6718f63d6babc7 (patch)
tree04b26fb1f94a836e46a16d0be8a0ee3c5910084b /bootstraptest
parent9718767ac63946f463bda58fd499b263fc55690d (diff)
downloadruby-5fc55e280982d7c9e7e6bf7a4d6718f63d6babc7.tar.gz
ruby-5fc55e280982d7c9e7e6bf7a4d6718f63d6babc7.tar.xz
ruby-5fc55e280982d7c9e7e6bf7a4d6718f63d6babc7.zip
* compile.c (compile_array, iseq_compile_each): fix about array
generation in void context. [ruby-dev:31102] * bootstraptest/test_literal.rb: add a test for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_literal.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstraptest/test_literal.rb b/bootstraptest/test_literal.rb
index fea5bcd07..2ef47a5c2 100644
--- a/bootstraptest/test_literal.rb
+++ b/bootstraptest/test_literal.rb
@@ -112,6 +112,7 @@ assert_equal 'Array', 'a = [obj = Object.new]; a.class'
assert_equal '1', 'a = [obj = Object.new]; a.size'
assert_equal 'true', 'a = [obj = Object.new]; a[0] == obj'
assert_equal '5', 'a = [1,2,3]; a[1] = 5; a[1]'
+assert_equal 'bar', '[*:foo];:bar'
# hash
assert_equal 'Hash', '{}.class'