Sign in
fuchsia
/
third_party
/
swig
/
00b47d4d1d37ee0250f2f5da5cb27513f7811697
/
.
/
Examples
/
test-suite
/
ruby
/
dynamic_cast_runme.rb
blob: 8239051b1f507cbe17ee8d6b8daa15d35a37707c [
file
] [
log
] [
blame
]
#!/usr/bin/env ruby
#
# Put description here
#
#
#
#
#
require
'swig_assert'
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