diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/ruby/test_zjit.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_zjit.rb b/test/ruby/test_zjit.rb index 736c6306d1..e2a0120eb0 100644 --- a/test/ruby/test_zjit.rb +++ b/test/ruby/test_zjit.rb @@ -139,6 +139,15 @@ class TestZJIT < Test::Unit::TestCase }, insns: [:splatarray] end + def test_concattoarray + assert_compiles '[1, 2, 3]', %q{ + def test(*a) + [1, 2, *a] + end + test 3 + }, insns: [:concattoarray] + end + def test_definedivar assert_compiles '[nil, "instance-variable", nil]', %q{ def test |
