diff options
author | eileencodes <eileencodes@gmail.com> | 2021-07-27 13:48:33 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:38 -0400 |
commit | 50029fb127c38b345dc781ea8f67bfc372cc5390 (patch) | |
tree | c946fb9fbeb02e4c01f89f949cc502fbe7ff388e /bootstraptest | |
parent | 6aa4637272204b7017a0414393ab05be6fa07672 (diff) |
Add getglobal to yjit
Adds getglobal to yjit and a test for it.
Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_yjit.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb index 9bce707cb5..91b63cf076 100644 --- a/bootstraptest/test_yjit.rb +++ b/bootstraptest/test_yjit.rb @@ -1,3 +1,15 @@ +# Check that global variables work + +assert_equal 'string', %q{ + $foo = "string" + + def foo + $foo + end + + foo +} + # Check that global tracepoints work assert_equal 'true', %q{ def foo |