summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>2021-02-25 12:09:29 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:30 -0400
commitf93f3d6aa164ea5bc01e596c84b7c525c41bb852 (patch)
tree381d3cad2725b73b5087118dd7e2962919dd1d78 /bootstraptest
parent8e5222c887e05685f34b819e913de5ab5d7a0c39 (diff)
Implement support for variadic C functions
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_ujit.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/bootstraptest/test_ujit.rb b/bootstraptest/test_ujit.rb
index a5252d4570..0f67c6ebbb 100644
--- a/bootstraptest/test_ujit.rb
+++ b/bootstraptest/test_ujit.rb
@@ -81,6 +81,17 @@ assert_normal_exit %q{
foo()
}
+# The hash method is a C function and uses the self argument
+assert_equal 'true', %q{
+ def lehashself
+ hash
+ end
+
+ a = lehashself
+ b = lehashself
+ a == b
+}
+
# Method redefinition (code invalidation) test
assert_equal '1', %q{
def ret1