diff options
| author | Max Bernstein <ruby@bernsteinbear.com> | 2025-08-27 22:16:10 -0400 |
|---|---|---|
| committer | Max Bernstein <tekknolagi@gmail.com> | 2025-08-28 10:14:37 -0700 |
| commit | ca0ef794971f4fddf92c4652dee17ada63d52dbe (patch) | |
| tree | a9f59df5cceafbe68d74c5edb3b725b74b9acd37 /test/ruby/test_zjit.rb | |
| parent | 11f115b0d233215f2575333da0e9351dcfc4a11f (diff) | |
ZJIT: Generate code for HashDup
Diffstat (limited to 'test/ruby/test_zjit.rb')
| -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 |
