import source from 1.3.40
[external/swig.git] / Examples / test-suite / ruby / dynamic_cast_runme.rb
1 #!/usr/bin/env ruby
2 #
3 # Put description here
4 #
5
6
7
8 #
9
10 require 'swig_assert'
11
12 require 'dynamic_cast'
13
14 f = Dynamic_cast::Foo.new
15 b = Dynamic_cast::Bar.new
16
17 x = f.blah
18 y = b.blah
19
20 a = Dynamic_cast.do_test(y)
21 if a != "Bar::test"
22   puts "Failed!!"
23 end
24