*** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4459 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
331868633b
commit
1c8d2d0f66
2 changed files with 19 additions and 0 deletions
11
SWIG/Examples/test-suite/ruby/varargs_runme.rb
Normal file
11
SWIG/Examples/test-suite/ruby/varargs_runme.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
require 'varargs'
|
||||||
|
|
||||||
|
if Varargs.test("Hello") != "Hello"
|
||||||
|
raise RuntimeError, "Failed"
|
||||||
|
end
|
||||||
|
|
||||||
|
f = Varargs::Foo.new
|
||||||
|
if f.test("Hello") != "Hello"
|
||||||
|
raise RuntimeError, "Failed"
|
||||||
|
end
|
||||||
|
|
||||||
8
SWIG/Examples/test-suite/ruby/voidtest_runme.rb
Normal file
8
SWIG/Examples/test-suite/ruby/voidtest_runme.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
require 'voidtest'
|
||||||
|
|
||||||
|
Voidtest.globalfunc()
|
||||||
|
f = Voidtest::Foo.new
|
||||||
|
f.memberfunc()
|
||||||
|
|
||||||
|
Voidtest::Foo.staticmemberfunc()
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue