ruby-changes:68750
From: Maxime <ko1@a...>
Date: Thu, 21 Oct 2021 08:13:25 +0900 (JST)
Subject: [ruby-changes:68750] 3d026adb61 (master): Add failing test identified by Aaron Patterson
https://git.ruby-lang.org/ruby.git/commit/?id=3d026adb61 From 3d026adb613f2e27a5c84f3db8f5ddc6896ba5a3 Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@s...> Date: Wed, 10 Feb 2021 19:57:06 -0500 Subject: Add failing test identified by Aaron Patterson --- bootstraptest/test_ujit.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bootstraptest/test_ujit.rb b/bootstraptest/test_ujit.rb index 13cb81d368..0894a1b4e2 100644 --- a/bootstraptest/test_ujit.rb +++ b/bootstraptest/test_ujit.rb @@ -1,3 +1,15 @@ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_ujit.rb#L1 +# Putobject, less-than operator, fixnums +assert_equal '2', %q{ + def check_index(index) + if 0x40000000 < index + raise "wat? #{index}" + end + index + end + check_index 2 + check_index 2 +} + # Method redefinition (code invalidation) test assert_equal '1', %q{ def ret1 -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/