mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add test for [ruby-dev:32567].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cf8c1e49dd
commit
b21aa43b4c
1 changed files with 10 additions and 0 deletions
|
@ -159,3 +159,13 @@ assert_equal 'true', %q{
|
|||
}, '[ruby-dev:32452]'
|
||||
|
||||
assert_normal_exit %q{ // =~ :a }
|
||||
|
||||
assert_equal '[nil, []]', %q{
|
||||
def m() yield nil,[] end
|
||||
l = lambda {|*v| v}
|
||||
GC.stress=true
|
||||
r = m(&l)
|
||||
GC.stress=false
|
||||
r.inspect
|
||||
}, '[ruby-dev:32567]'
|
||||
|
||||
|
|
Loading…
Reference in a new issue