From 9df88e9cae57aa421230f14500e88f33f127414f Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 1 Jan 2017 09:17:10 +0000 Subject: [PATCH] test for [Feature #11547] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_const.rb | 4 ++++ 1 file changed, 4 insertions(+) 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