aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/ruby/newobject2_runme.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/ruby/newobject2_runme.rb')
-rw-r--r--Examples/test-suite/ruby/newobject2_runme.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/Examples/test-suite/ruby/newobject2_runme.rb b/Examples/test-suite/ruby/newobject2_runme.rb
new file mode 100644
index 000000000..4519b123e
--- /dev/null
+++ b/Examples/test-suite/ruby/newobject2_runme.rb
@@ -0,0 +1,15 @@
+require 'newobject2'
+
+include Newobject2
+
+foo1 = makeFoo
+raise RuntimeError if fooCount != 1
+
+foo2 = makeFoo
+raise RuntimeError if fooCount != 2
+
+foo1 = nil ; GC.start
+raise RuntimeError if fooCount != 1
+
+foo2 = nil ; GC.start
+raise RuntimeError if fooCount != 0