diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-19 01:59:38 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-19 01:59:38 +0000 |
commit | 321c94af8e43fa199c74673b37b8205b6508ee8d (patch) | |
tree | 14061f07be9b7b0c08a526b3522a4ae427e4d169 /test/ruby/test_regexp.rb | |
parent | afd50701c5b13ddbbd7e73c527f723b6e496dee9 (diff) |
* iseq.c (prepare_iseq_build, rb_iseq_build_for_ruby2cext):
untrust mark array. [ruby-core:26137]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_regexp.rb')
-rw-r--r-- | test/ruby/test_regexp.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb index 541804ade5..4f8a1a6c77 100644 --- a/test/ruby/test_regexp.rb +++ b/test/ruby/test_regexp.rb @@ -472,6 +472,10 @@ class TestRegexp < Test::Unit::TestCase /foo/.match("foo") end.value assert(m.tainted?) + assert_nothing_raised('[ruby-core:26137]') { + m = proc {$SAFE = 4; /#{}/o}.call + } + assert(m.tainted?) end def check(re, ss, fs = []) |