aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-01 09:17:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-01 09:17:10 +0000
commit9df88e9cae57aa421230f14500e88f33f127414f (patch)
tree9de69221b07590991ab2ab5471d94a330c58f08d /test
parent44a2576f798b07139adde2d279e48fdbe71a0148 (diff)
downloadruby-9df88e9cae57aa421230f14500e88f33f127414f.tar.gz
test for [Feature #11547]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_const.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_const.rb b/test/ruby/test_const.rb
index ef5c295b07..8784e0e988 100644
--- a/test/ruby/test_const.rb
+++ b/test/ruby/test_const.rb
@@ -65,4 +65,8 @@ WARNING
PRE
assert_no_memory_leak(%w[-W0 -], '', code, 'redefined constant', timeout: 30)
end
+
+ def test_toplevel_lookup
+ assert_raise(NameError, '[Feature #11547]') {TestConst::Object}
+ end
end