aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_syntax.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-31 08:04:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-31 08:04:49 +0000
commit96c7133e04342bd7f5060fba0033f9b93903ff73 (patch)
tree82d9012fbfc6e22be2946269224e51d2ef91e834 /test/ruby/test_syntax.rb
parent720bab07295dce3a2f24c17d903deea2c5a643b3 (diff)
downloadruby-96c7133e04342bd7f5060fba0033f9b93903ff73.tar.gz
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/test_syntax.rb')
-rw-r--r--test/ruby/test_syntax.rb2
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