git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
15 lines
263 B
Ruby
15 lines
263 B
Ruby
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
|
|
|