Project

General

Profile

Bug #13282 ยป opt_str_freeze_not_always_effective.rb

normalperson (Eric Wong), 03/05/2017 01:57 AM

 
require 'test/unit'
# Oddly, test/ruby/test_optimization.rb (test_string_freeze)
# has the same test and passes
class TestString < Test::Unit::TestCase
def test_string_freeze
assert_equal "foo".freeze.object_id, "foo".freeze.object_id
end
end
    (1-1/1)