varargs runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4578 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
346e766e31
commit
b39ab0aa29
3 changed files with 57 additions and 4 deletions
19
Examples/test-suite/csharp/varargs_runme.cs
Normal file
19
Examples/test-suite/csharp/varargs_runme.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// varargs test
|
||||
|
||||
using System;
|
||||
|
||||
public class varargs_runme {
|
||||
|
||||
public static void Main() {
|
||||
|
||||
if (varargs.test("Hello") != "Hello")
|
||||
throw new Exception("Failed");
|
||||
|
||||
Foo f = new Foo("Greetings");
|
||||
if (f.str != "Greetings")
|
||||
throw new Exception("Failed");
|
||||
|
||||
if (f.test("Hello") != "Hello")
|
||||
throw new Exception("Failed");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue