swig/Examples/test-suite/ruby/dynamic_cast_runme.rb
Karl Wette 7cd9063b52 Remove execute permissions from various non-executable files
- source files and Makefiles need never be executable
- scripts are run directly by their interpreters in the
  test suites, so also do not need to be executable
2014-05-02 20:06:11 +02:00

24 lines
257 B
Ruby

#!/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