mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_syntax.rb: suppress warnings
* test/ruby/test_syntax.rb (TestSyntax#test_return_toplevel): suppress unreachable statement warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
df49fc659e
commit
1f506de649
1 changed files with 1 additions and 1 deletions
|
@ -999,7 +999,7 @@ eom
|
|||
nil&defined?0--begin e=no_method_error(); return; 0;end
|
||||
end;
|
||||
all_assertions_foreach(feature4840, *code.split(/\n/)) do |s|
|
||||
assert_in_out_err([], s, [*s[/#=> (.*)/, 1]], [],
|
||||
assert_in_out_err(%[-W0], s, [*s[/#=> (.*)/, 1]], [],
|
||||
proc {RubyVM::InstructionSequence.compile(s).disasm},
|
||||
success: true)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue