summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-15 14:27:38 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-15 16:06:48 +0900
commita9567cc2bfad37cc22b3efe0971ba85bd9c1df34 (patch)
treeed546873bf8b2892a2882755f22f0e7920242282 /bootstraptest
parent1dad9fa5e1303ce0ba38f55ae81b87ab3857df62 (diff)
Added test for `debug_level:` option of `RubyVM::InstructionSequence.compile`
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3033
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_insns.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/bootstraptest/test_insns.rb b/bootstraptest/test_insns.rb
index cb54d0d3f7..abfb53f7dc 100644
--- a/bootstraptest/test_insns.rb
+++ b/bootstraptest/test_insns.rb
@@ -438,3 +438,8 @@ tests.compact.each {|(insn, expr, *a)|
assert_equal 'true', progn, 'trace_' + insn, *a
end
}
+
+assert_normal_exit("#{<<-"begin;"}\n#{<<-'end;'}")
+begin;
+ RubyVM::InstructionSequence.compile("", debug_level: 5)
+end;