Sign in
fuchsia
/
third_party
/
swig
/
47297f34531d8773042ecff23d625da4c9dc2178
/
.
/
Examples
/
test-suite
/
ruby
/
overload_subtype_runme.rb
blob: 991a2e4ad49a098640a4675fccc64b1d85ffec2d [
file
] [
log
] [
blame
]
#!/usr/bin/env ruby
#
# Put description here
#
#
#
#
#
require
'swig_assert'
require
'overload_subtype'
include
Overload_subtype
f
=
Foo
.
new
b
=
Bar
.
new
if
spam
(
f
)
!=
1
raise
RuntimeError
,
"foo"
end
if
spam
(
b
)
!=
2
raise
RuntimeError
,
"bar"
end