summaryrefslogtreecommitdiff
path: root/bootstraptest/test_proc.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-11 11:20:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-11 11:20:18 +0000
commit857b3018dd7b76828b0d61921cb24de59778765f (patch)
tree8d23f60b239e90b6524f3022b939f3432b89ec95 /bootstraptest/test_proc.rb
parent7e6cf122efcea0aceda17feff2614fe6cda491c5 (diff)
downloadruby-857b3018dd7b76828b0d61921cb24de59778765f.tar.gz
* proc.c (proc_mark): needs to mark the receiver too. a patch from
Chris Heath <chris AT heathens.co.nz> in [ruby-core:14983]. [ruby-core:14885] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_proc.rb')
-rw-r--r--bootstraptest/test_proc.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/bootstraptest/test_proc.rb b/bootstraptest/test_proc.rb
index 049bc99131..875a000b7c 100644
--- a/bootstraptest/test_proc.rb
+++ b/bootstraptest/test_proc.rb
@@ -253,3 +253,10 @@ assert_equal %q{3}, %q{
a + 2
}.call
}
+
+assert_equal %q{ok}, %q{
+ class A; def get_block; proc {puts "ok"} end end
+ block = A.new.get_block
+ GC.start
+ block.call
+}