diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-31 08:04:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-31 08:04:49 +0000 |
commit | 1f506de649eea999b1235915173fdc428ca7a666 (patch) | |
tree | 82d9012fbfc6e22be2946269224e51d2ef91e834 /test/ruby | |
parent | df49fc659e70a728e000f5a9756e3f483b00acd1 (diff) |
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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_syntax.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index 561c45a6c6..eaebbcf1bf 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -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 |