From be1c68caeb878f6822e9720687152b41dcc160a5 Mon Sep 17 00:00:00 2001 From: mame Date: Sun, 27 Jun 2010 18:13:06 +0000 Subject: [PATCH] * bootstraptest/test_class.rb: add a test for [ruby-core:30843]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ bootstraptest/test_class.rb | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 58f54dc968..a50a159a43 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Jun 28 03:12:03 2010 Yusuke Endoh + + * bootstraptest/test_class.rb: add a test for [ruby-core:30843]. + Mon Jun 28 02:43:35 2010 Yusuke Endoh * class.c (rb_mod_init_copy): when class is dup'ed, a metaclass of the diff --git a/bootstraptest/test_class.rb b/bootstraptest/test_class.rb index a7f6d4df47..664dd2f166 100644 --- a/bootstraptest/test_class.rb +++ b/bootstraptest/test_class.rb @@ -150,3 +150,10 @@ assert_match /::C\z/, %q{ Module.new{|m| c = class m::C; name; end} c }, '[ruby-dev:38456]' + +assert_normal_exit %q{ + s = Symbol.dup + class << s + end + s.allocate.to_s +}, '[ruby-core:30843]'