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