/trunk/Examples/test-suite/ruby/smart_pointer_multi_runme.rb
Ruby | 26 lines | 11 code | 7 blank | 8 comment | 4 complexity | 3daf1b6eb0b2850e4fe48fe83674b9f7 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- #!/usr/bin/env ruby
- #
- # Put description here
- #
- #
- #
- #
- #
- require 'swig_assert'
- require 'smart_pointer_multi'
- include Smart_pointer_multi
- f = Foo.new
- b = Bar.new(f)
- s = Spam.new(b)
- g = Grok.new(b)
- s.x = 3
- raise RuntimeError if s.getx() != 3
- g.x = 4
- raise RuntimeError if g.getx() != 4