|
|
@ -64,23 +64,29 @@ public class LocalTypes { |
|
|
|
|
|
|
|
|
|
|
|
public void arithTest() { |
|
|
|
public void arithTest() { |
|
|
|
int a=1,b=2; |
|
|
|
int a=1,b=2; |
|
|
|
boolean x = true,y = false; |
|
|
|
boolean xb = true,yb = false; |
|
|
|
|
|
|
|
int xi = 1,yi = 0; |
|
|
|
int c=0; |
|
|
|
int c=0; |
|
|
|
arithTest(); |
|
|
|
arithTest(); |
|
|
|
if (x & y) { |
|
|
|
if ((xb & yb) || (xi & yi) != 0) { |
|
|
|
c = 5; |
|
|
|
c = 5; |
|
|
|
arithTest(); |
|
|
|
arithTest(); |
|
|
|
x &= y; |
|
|
|
xb &= yb; |
|
|
|
|
|
|
|
xi &= yi; |
|
|
|
arithTest(); |
|
|
|
arithTest(); |
|
|
|
x = x | y; |
|
|
|
xb = xb | yb; |
|
|
|
|
|
|
|
xi = xi | yi; |
|
|
|
arithTest(); |
|
|
|
arithTest(); |
|
|
|
x ^= y; |
|
|
|
xb ^= yb; |
|
|
|
|
|
|
|
xi ^= yi; |
|
|
|
arithTest(); |
|
|
|
arithTest(); |
|
|
|
x = x && y; |
|
|
|
xb = xb && yb; |
|
|
|
|
|
|
|
xi = (xi != 0) && (yi != 0) ? 1 : 0; |
|
|
|
arithTest(); |
|
|
|
arithTest(); |
|
|
|
b <<= a; |
|
|
|
b <<= a; |
|
|
|
b <<= c; |
|
|
|
b <<= c; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
xi++; |
|
|
|
a&=b; |
|
|
|
a&=b; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|