unsigned long long test added

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9433 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-10-11 22:36:15 +00:00
parent e11d78b88e
commit 127e793e99
2 changed files with 23 additions and 2 deletions

View File

@ -47,4 +47,10 @@
virtual ~Ops() {}
virtual operator int() { return 0; }
};
struct Prims {
virtual ~Prims() {}
virtual unsigned long long ull(unsigned long long i, unsigned long long j) { return i + j; }
unsigned long long callull(int i, int j) { return ull(i, j); }
};
%}

View File

@ -19,6 +19,21 @@ public class director_frob_runme
String s = foo.abs_method();
if (!s.equals("Bravo::abs_method()"))
throw new RuntimeException( "error" );
throw new RuntimeException( "error" );
Prims prims = new PrimsDerived();
java.math.BigInteger bi = prims.callull(200, 50);
java.math.BigInteger biCheck = new java.math.BigInteger("150");
if (bi.compareTo(biCheck) != 0)
throw new RuntimeException( "failed got:" + bi);
}
}
}
class PrimsDerived extends Prims {
PrimsDerived() {
super();
}
public java.math.BigInteger ull(java.math.BigInteger i, java.math.BigInteger j) {
return i.subtract(j);
}
}