summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorZack Deveau <zack.ref@gmail.com>2022-08-02 13:09:51 -0400
committerTakashi Kokubun <takashikkbn@gmail.com>2022-08-29 08:47:05 -0700
commitdea42385440c7abc332d8fda04dbec0f33364baa (patch)
tree1d882ec609c14e6cd1dbbbf70d90fb60ff99fc0a /bootstraptest
parent330c9e98506d421778c8f2581a23ba44e4663e06 (diff)
Port gen_concatstring to new backend IR (https://github.com/Shopify/ruby/pull/350)
* Port gen_concatstring to new backend IR * Update yjit/src/codegen.rs Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
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 b8374746f7..2409306106 100644
--- a/bootstraptest/test_yjit.rb
+++ b/bootstraptest/test_yjit.rb
@@ -3103,3 +3103,11 @@ assert_equal '/true/', %q{
end
foo().inspect
}
+
+# concatstrings
+assert_equal '9001', %q{
+ def foo()
+ "#{9001}"
+ end
+ foo()
+}