diff options
Diffstat (limited to 'bootstraptest/test_yjit.rb')
| -rw-r--r-- | bootstraptest/test_yjit.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb index 7fe637a86b..f55d63672f 100644 --- a/bootstraptest/test_yjit.rb +++ b/bootstraptest/test_yjit.rb @@ -1386,3 +1386,12 @@ assert_equal '[nil, nil, nil, 1]', %q{ is_inf(1.0/0.0) ] } + +assert_equal '[1, 2, 3, 4, 5]', %q{ + def splatarray + [*(1..5)] + end + + splatarray + splatarray +} |
