summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-12 15:48:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-12 15:48:44 +0000
commit6b7dbd3e31c7d5943a5f021c9e45af0a0c3a664d (patch)
tree76fe893ab338b299b14c79bd51593c8c92140597 /bootstraptest
parent3d9c0014e6c9ebe269781c718f380b9527114d8f (diff)
* insns.def (defineclass): try to autoload const to be overridden.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_autoload.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/bootstraptest/test_autoload.rb b/bootstraptest/test_autoload.rb
index 395153f4385..fe728e1e4cb 100644
--- a/bootstraptest/test_autoload.rb
+++ b/bootstraptest/test_autoload.rb
@@ -67,3 +67,12 @@ assert_finish 5, %q{
end
}, '[ruby-core:21696]'
+assert_equal 'A::C', %q{
+ open("zzz.rb", "w") {}
+ class A
+ autoload :C, "zzz"
+ class C
+ end
+ C
+ end
+}