some more tests, include shifting of longs (second parameter is int)

and dividing shorts by double (involves several casts)


git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@323 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 0e8829443f
commit 9a5ccb5a86
  1. 10
      jode/test/AssignOp.java

@ -22,14 +22,20 @@ public class AssignOp {
void assop() {
short local_short = 0;
int local_int = 0;
long local_long = 0;
double local_double = 1.0;
String local_String = null;
local_short -= 25 * local_int;
static_short /= 5;
obj_short += 100 - local_int;
static_short += 100 - local_int;
obj_short /= 0.1;
arr_short[local_int] >>= 25;
local_long -= 15L;
static_long <<= local_int;
obj_long >>>= 3;
arr_long[4+local_int] *= obj_long - static_long;
local_int |= 25 | local_int;
static_int <<= 3;
obj_int *= 17 + obj_int;

Loading…
Cancel
Save