operator overloading test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8142 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
80b5e8aaaf
commit
fc0d1e82bc
1 changed files with 17 additions and 0 deletions
17
Examples/test-suite/csharp/operator_overload_runme.cs
Normal file
17
Examples/test-suite/csharp/operator_overload_runme.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
using System;
|
||||||
|
using System.Threading;
|
||||||
|
using operator_overloadNamespace;
|
||||||
|
|
||||||
|
public class runme
|
||||||
|
{
|
||||||
|
static void Main()
|
||||||
|
{
|
||||||
|
Op op = new Op(100);
|
||||||
|
op++;
|
||||||
|
if (op.i != 101) throw new Exception("operator++ failed");
|
||||||
|
op--;
|
||||||
|
if (op.i != 100) throw new Exception("operator-- failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue