aboutsummaryrefslogtreecommitdiffstats
path: root/KNOWNBUGS.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-03 10:50:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-03 10:50:47 +0000
commit9cc36fa8156e30412ed707cef7a7ef0d007fd7ff (patch)
tree23fbff7585d91dac19e6802af86754688066d21a /KNOWNBUGS.rb
parent28b01c5462f165c6b8c9ef4e71365bc6c518f751 (diff)
downloadruby-9cc36fa8156e30412ed707cef7a7ef0d007fd7ff.tar.gz
Reproducible test for [Feature#14370] @ [Bug #14660]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'KNOWNBUGS.rb')
-rw-r--r--KNOWNBUGS.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/KNOWNBUGS.rb b/KNOWNBUGS.rb
index 35a8e75876..0eedc340f3 100644
--- a/KNOWNBUGS.rb
+++ b/KNOWNBUGS.rb
@@ -5,3 +5,25 @@
# This test file includes tests which point out known bugs.
# So all tests will cause failure.
#
+assert_normal_exit("#{<<~"begin;"}\n#{<<~'end;#1'}", timeout: 5)
+begin;
+ str = "#{<<~"begin;"}\n#{<<~'end;'}"
+ begin;
+ class P
+ def p; end
+ def q; end
+ E = ""
+ N = "#{E}"
+ attr_reader :i
+ undef p
+ undef q
+ remove_const :E
+ remove_const :N
+ end
+ end;
+ iseq = RubyVM::InstructionSequence.compile(str)
+ 100.times {|i|
+ bin = iseq.to_binary
+ RubyVM::InstructionSequence.load_from_binary(bin).eval
+ }
+end;#1