From 20af032e82226d672d7d0f158a42e6118e8ee3fa Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 31 Jan 2013 07:33:30 +0000 Subject: parse.y: no assigned but unused warnings in eval * parse.y (local_push_gen): no assigned but unused variable warnings in eval as well as -e. [Feature #7730] [ruby-core:51580] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_rubyoptions.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby/test_rubyoptions.rb') diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index cf42475633..8f22bdaecc 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -554,6 +554,7 @@ class TestRubyOptions < Test::Unit::TestCase assert_in_out_err(["-we", "def foo\n a=1\n :a\nend"], "", [], ["-e:2: warning: assigned but unused variable - a"], bug7408) feature7730 = '[ruby-core:51580]' assert_in_out_err(["-w", "-"], "a=1", [], ["-:1: warning: assigned but unused variable - a"], feature7730) + assert_in_out_err(["-w", "-"], "eval('a=1')", [], [], feature7730) end def test_shadowing_variable -- cgit v1.2.3