swig/Examples/test-suite/ruby/refcount_runme.rb
Gonzalo Garramuno 8742036cbd Removed macro stuff titles of author, copyright,
etc.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9785 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-06 18:02:24 +00:00

21 lines
244 B
Ruby

#!/usr/bin/env ruby
#
# Put description here
#
#
#
#
#
require 'swig_assert'
require 'refcount'
a = Refcount::A3.new;
b1 = Refcount::B.new a;
b2 = Refcount::B.new a;
if a.ref_count() != 3
print "This program will crash... now\n"
end