/tags/rel-2.0.2/Examples/test-suite/ruby/refcount_runme.rb
# · Ruby · 21 lines · 8 code · 5 blank · 8 comment · 2 complexity · 5fe661385c6d8554647a925679acac15 MD5 · raw file
- #!/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