swig/Examples/test-suite/ruby/dynamic_cast_runme.rb
Dave Beazley 12a43edc2d The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00

13 lines
175 B
Ruby
Executable file

require 'dynamic_cast'
f = Dynamic_cast::Foo.new
b = Dynamic_cast::Bar.new
x = f.blah
y = b.blah
a = Dynamic_cast.do_test(y)
if a != "Bar::test"
puts "Failed!!"
end