From 3d026adb613f2e27a5c84f3db8f5ddc6896ba5a3 Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Wed, 10 Feb 2021 19:57:06 -0500 Subject: [PATCH] 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 @@ +# 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