From a6104b392ab347c323c93a51fb3b95c3c2cc9e8f Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Wed, 27 Oct 2021 07:55:43 -0700 Subject: YJIT: Support newhash with values (#5029) * YJIT: Implement newhash with values * YJIT: Add test of duphash * Fix compilation on macos/clang --- bootstraptest/test_yjit.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bootstraptest') diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb index c94c710c4d..0a3aa81860 100644 --- a/bootstraptest/test_yjit.rb +++ b/bootstraptest/test_yjit.rb @@ -2278,3 +2278,13 @@ assert_equal '{:foo=>123}', %q{ foo foo } + +# newhash +assert_equal '{:foo=>2}', %q{ + def foo + {foo: 1+1} + end + + foo + foo +} -- cgit v1.2.3