summaryrefslogtreecommitdiff
path: root/sample/test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/test.rb')
-rw-r--r--sample/test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/sample/test.rb b/sample/test.rb
index 104ff2900d..4ee6ddcec8 100644
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -1329,6 +1329,16 @@ begin
rescue
test_ok false
end
+class S
+ def initialize(a)
+ @a = a
+ end
+end
+l=nil
+100000.times {
+ l = S.new(l)
+}
+test_ok true # reach here or dumps core
if $failed > 0
printf "test: %d failed %d\n", $ntest, $failed