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:
William S Fulton 2005-12-31 00:14:18 +00:00
commit fc0d1e82bc

View 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");
}
}