summaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-30 12:42:41 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-30 12:42:41 +0000
commit458d36fbe53eee3cef72fd8495e97d35273d1614 (patch)
tree04e50575965b636ca630915d6b87914b4db5a4c5 /bootstraptest
parent458c447fdfbacfc5f8b3da40f103ca2bf8eb6ca2 (diff)
downloadruby-458d36fbe53eee3cef72fd8495e97d35273d1614.tar.gz
ruby-458d36fbe53eee3cef72fd8495e97d35273d1614.tar.xz
ruby-458d36fbe53eee3cef72fd8495e97d35273d1614.zip
* compile.c (iseq_compile_each): fix stack consistency error.
[ruby-core:24611] * bootstraptest/test_method.rb: add tests for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_method.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/bootstraptest/test_method.rb b/bootstraptest/test_method.rb
index 8953a0d4d..2ce66f6a6 100644
--- a/bootstraptest/test_method.rb
+++ b/bootstraptest/test_method.rb
@@ -1151,3 +1151,13 @@ assert_normal_exit %q{
e.message == "undefined method `lalala!' for \"a\":String" ? :ok : :ng
end
}, '[ruby-core:22298]'
+
+assert_equal 'ok', %q{
+ "hello"[0] ||= "H"
+ "ok"
+}
+
+assert_equal 'ok', %q{
+ "hello"[0, 1] ||= "H"
+ "ok"
+}