summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorZack Deveau <zack.ref@gmail.com>2022-07-27 14:31:41 -0400
committerTakashi Kokubun <takashikkbn@gmail.com>2022-08-29 08:47:05 -0700
commit6ab71a8598c6eece25975ca262eb880462e47b06 (patch)
tree80a7b7f47254e53f66d23c6a42d54784555c9fd7 /bootstraptest
parent4b1ab009c4ceea2232d1c71a1af7bf1a04af2165 (diff)
Port gen_checktype to the new IR assembler backend (https://github.com/Shopify/ruby/pull/343)
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_yjit.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb
index 966a5f3002..d82f3de95e 100644
--- a/bootstraptest/test_yjit.rb
+++ b/bootstraptest/test_yjit.rb
@@ -3066,3 +3066,11 @@ assert_equal '10', %q{
a.length
}
+
+# checktype
+assert_equal 'false', %q{
+ def function()
+ [1, 2] in [Integer, String]
+ end
+ function()
+}