diff options
Diffstat (limited to 'test/ruby/test_const.rb')
-rw-r--r-- | test/ruby/test_const.rb | 4 |
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 |