import source from 1.3.40
[external/swig.git] / Examples / test-suite / ruby / overload_subtype_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 'overload_subtype'
13
14 include Overload_subtype
15
16 f = Foo.new
17 b = Bar.new
18
19 if spam(f) != 1
20   raise RuntimeError, "foo"
21 end
22
23 if spam(b) != 2
24   raise RuntimeError, "bar"
25 end
26