summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_class.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb
index 8d618822a5..382dbb9cc3 100644
--- a/test/ruby/test_class.rb
+++ b/test/ruby/test_class.rb
@@ -130,6 +130,14 @@ class TestClass < Test::Unit::TestCase
end
end
assert_equal("", stderr)
+ stderr = verbose_warning do
+ Module.new do
+ module_function
+ def foo; end
+ module_function :foo
+ end
+ end
+ assert_equal("", stderr, '[ruby-dev:39397]')
end
def test_check_inheritable