diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/ruby/test_zjit.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ruby/test_zjit.rb b/test/ruby/test_zjit.rb index 692dfb486c..7c29fdeb19 100644 --- a/test/ruby/test_zjit.rb +++ b/test/ruby/test_zjit.rb @@ -99,6 +99,16 @@ class TestZJIT < Test::Unit::TestCase }, insns: [:intern] end + def test_duphash + assert_compiles '{a: 1}', %q{ + def test + {a: 1} + end + + test + }, insns: [:duphash] + end + def test_setglobal_with_trace_var_exception assert_compiles '"rescued"', %q{ def test |
