From c74b31a4504f13d985752503e5f9f05ce51d7bef Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 29 Aug 2008 08:24:51 +0000 Subject: * vm_insnhelper.c (vm_call_method): copy arguments to allocated memory from machine stack. [ruby-dev:36028] * KNOWNBUGS.rb, bootstraptest/test_method.rb: move fixed test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_method.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bootstraptest/test_method.rb') diff --git a/bootstraptest/test_method.rb b/bootstraptest/test_method.rb index 5bc0f8cce..63c6ad2db 100644 --- a/bootstraptest/test_method.rb +++ b/bootstraptest/test_method.rb @@ -1058,3 +1058,14 @@ assert_equal '[false, false, false, false, true, true]', %q{ D.new.bar{} [C.new.foo, C.new.foo{}, D.new.m1, D.new.m1{}, D.new.m2, D.new.m2{}] }, '[ruby-core:14813]' + +assert_equal 'ok', %q{ + class Foo + define_method(:foo) do |&b| + b.call + end + end + Foo.new.foo do + break :ok + end +}, '[ruby-dev:36028]' -- cgit