aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_symbol.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_symbol.rb')
-rw-r--r--test/ruby/test_symbol.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb
index 0e8417c5ed..94541865f2 100644
--- a/test/ruby/test_symbol.rb
+++ b/test/ruby/test_symbol.rb
@@ -157,6 +157,13 @@ class TestSymbol < Test::Unit::TestCase
assert_equal(1, first, bug11594)
end
+ def test_to_proc_for_hash_each
+ bug11830 = '[ruby-core:72205] [Bug #11830]'
+ assert_normal_exit(<<-'end;', bug11830) # do
+ {}.each(&:destroy)
+ end;
+ end
+
def test_call
o = Object.new
def o.foo(x, y); x + y; end