diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-16 01:15:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-16 01:15:35 +0000 |
commit | 86de3e411aa65b273d1123f7260c016f31fc08ec (patch) | |
tree | 02532d324d9925c754c326a7f100d5209cab3281 /test/ruby/test_rubyoptions.rb | |
parent | b67f65dbd65f7b672747ab7f7b13693441ca24d8 (diff) |
compile.c: keep debug info
* compile.c (iseq_peephole_optimize): keep freezestring insn
with debug info. [Bug #14475]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 0fc96b5743..083572ca67 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -947,6 +947,8 @@ class TestRubyOptions < Test::Unit::TestCase [ ['"foo" << "bar"', err], ['"foo#{123}bar" << "bar"', err], + ['+"foo#{123}bar" << "bar"', []], + ['-"foo#{123}bar" << "bar"', freeze && debug ? with_debug_pat : wo_debug_pat], ].each do |code, expected| assert_in_out_err(opt, code, [], expected, [opt, code]) end |