operator overloading test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8142 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
75f9cf4e43
commit
b04955373c
1 changed files with 17 additions and 0 deletions
17
SWIG/Examples/test-suite/csharp/operator_overload_runme.cs
Normal file
17
SWIG/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